aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/yafray/Makefile
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-21 19:21:19 +0800
committerpav <pav@FreeBSD.org>2004-03-21 19:21:19 +0800
commit596c791fbe5eb8bf448e765e9c3da1601d1dd607 (patch)
tree0f93f8894d3f9bfb07751f70452d7c42bc19a7df /graphics/yafray/Makefile
parent6a8872a9b61d96b58208f3cbaf1ec211913f8f66 (diff)
downloadfreebsd-ports-graphics-596c791fbe5eb8bf448e765e9c3da1601d1dd607.tar.gz
freebsd-ports-graphics-596c791fbe5eb8bf448e765e9c3da1601d1dd607.tar.zst
freebsd-ports-graphics-596c791fbe5eb8bf448e765e9c3da1601d1dd607.zip
- Update to 0.0.6
PR: ports/64531 Submitted by: David Yeske <dyeske@yahoo.com> (maintainer)
Diffstat (limited to 'graphics/yafray/Makefile')
-rw-r--r--graphics/yafray/Makefile36
1 files changed, 27 insertions, 9 deletions
diff --git a/graphics/yafray/Makefile b/graphics/yafray/Makefile
index 6511e2acef6..bbe6fdc8ca4 100644
--- a/graphics/yafray/Makefile
+++ b/graphics/yafray/Makefile
@@ -5,9 +5,10 @@
# $FreeBSD$
PORTNAME= yafray
-PORTVERSION= 0.0.4
+PORTVERSION= 0.0.6
CATEGORIES= graphics
MASTER_SITES= http://www.coala.uniovi.es/~jandro/noname/downloads/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-2
MAINTAINER= dyeske@yahoo.com
COMMENT= A fast XML based raytracer
@@ -17,6 +18,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
USE_GETOPT_LONG=yes
USE_REINPLACE= yes
USE_LIBTOOL_VER=13
+INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib ${PTHREAD_CFLAGS}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
@@ -31,16 +33,32 @@ pre-everything::
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|-lpthread|${PTHREAD_LIBS}|' \
- ${WRKSRC}/configure
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} <= 500000
+BROKEN= "Does not compile (bad C++ code)"
+.endif
- @${REINPLACE_CMD} -E -e \
+post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile.in" | \
+ ${XARGS} ${REINPLACE_CMD} -E -e \
's|^CXX =.+$$|CXX=${CXX}|; \
s|-O3||; \
+ s|-D_PTHREADS||; \
+ s|-pthread|-lpthread|g; \
+ s|-lpthread|${PTHREAD_LIBS}|g; \
s|-ffast-math||; \
- s|-Wall|${CXXFLAGS}|' \
- ${WRKSRC}/src/Makefile.in
+ s|-ldl||; \
+ s|-Wall|${CXXFLAGS}|'
+
+ @${FIND} ${WRKSRC} -name "configure.in" \
+ -or -name "configure" | ${XARGS} \
+ ${REINPLACE_CMD} -E -e \
+ 's|-pthread|-lpthread|g; \
+ s|-lpthread|${PTHREAD_LIBS}|g'
+
+#make sure we don't need to run auto****
+ @${TOUCH} ${TOUCH_FLAGS} -t 199705212205.21 \
+ ${WRKSRC}/configure.in
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>