blob: a97bcb31f2a4b9242b4baa0aba6a6031cf08c31f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: yafray
# Date created: 18 May 2003
# Whom: David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
PORTNAME= yafray
PORTVERSION= 0.0.3
CATEGORIES= graphics
MASTER_SITES= http://www.coala.uniovi.es/~jandro/noname/downloads/
MAINTAINER= dyeske@yahoo.com
COMMENT= A fast XML based raytracer
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math
.endif
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "You can enable additional compilation optimizations"
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500041
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -E -e \
's|^CXX =.+$$|CXX=${CXX}|; \
s|-O3||; \
s|-ffast-math||; \
s|-Wall|${CXXFLAGS}|' \
${WRKSRC}/src/Makefile.in
.include <bsd.port.post.mk>
|