summaryrefslogtreecommitdiff
path: root/graphics/aqsis/Makefile
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-08-21 17:37:25 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-08-21 17:37:25 +0000
commit3b3e4d5cfb9807b04c6a526850d0051b74f23d67 (patch)
treed5095471a1b74f26fd27d26d966278c9f7bfe2a2 /graphics/aqsis/Makefile
parentUpdate the WWW to http://www.freedesktop.org/wiki/Software/PolicyKit . (diff)
- Update to 1.4.0
Diffstat (limited to 'graphics/aqsis/Makefile')
-rw-r--r--graphics/aqsis/Makefile57
1 files changed, 29 insertions, 28 deletions
diff --git a/graphics/aqsis/Makefile b/graphics/aqsis/Makefile
index 8421005dd1ba..2230e38a59a6 100644
--- a/graphics/aqsis/Makefile
+++ b/graphics/aqsis/Makefile
@@ -7,42 +7,43 @@
#
PORTNAME= aqsis
-PORTVERSION= 1.2.0
-PORTREVISION= 2
+PORTVERSION= 1.4.0
CATEGORIES= graphics
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= SF
MAINTAINER= gahr@FreeBSD.org
COMMENT= A photorealistic rendering system
-BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons \
- bjam:${PORTSDIR}/devel/boost \
+BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost \
bison:${PORTSDIR}/devel/bison \
- xsltproc:${PORTSDIR}/textproc/libxslt
-LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk \
- IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
+ xsltproc:${PORTSDIR}/textproc/libxslt \
+ fltk-threads>=0:${PORTSDIR}/x11-toolkits/fltk-threads
+LIB_DEPENDS= IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
tiff.4:${PORTSDIR}/graphics/tiff
-USE_LDCONFIG= yes
-
-SCONS_FLAGS= boost_include_path='${LOCALBASE}/include' \
- install_prefix='${PREFIX}'
-
-post-patch:
- ${REINPLACE_CMD} \
- -e 's|/usr/lib|${LOCALBASE}/lib|g' \
- -e 's|/usr/include|${LOCALBASE}/include|g' \
- -e 's|dl|c|g' \
- ${WRKSRC}/platform/default/SConscript
- ${REINPLACE_CMD} \
- -e 's|/usr/bin/bison|${LOCALBASE}/bin/bison|g' \
- ${WRKSRC}/platform/default/Options.py
+LDFLAGS+= -L${LOCALBASE}/lib
+CMAKE_ARGS= -DAQSIS_BOOST_FILESYSTEM_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_filesystem.so \
+ -DAQSIS_BOOST_REGEX_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_regex.so \
+ -DAQSIS_BOOST_THREAD_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_thread.so \
+ -DAQSIS_BOOST_WAVE_LIBRARY:FILEPATH=${LOCALBASE}/lib/libboost_wave.so \
+ -DAQSIS_BOOST_FILESYSTEM_LIBRARY_NAME:STRING=boost_filesystem \
+ -DAQSIS_BOOST_REGEX_LIBRARY_NAME:STRING=boost_regex \
+ -DAQSIS_BOOST_THREAD_LIBRARY_NAME:STRING=boost_thread \
+ -DAQSIS_BOOST_WAVE_LIBRARY_NAME:STRING=boost_wave \
+ -DAQSIS_FLTK_INCLUDE_DIR:PATH=${LOCALBASE}/include \
+ -DAQSIS_FLTK_LIBRARIES:FILEPATH=${LOCALBASE}/lib/libfltk.so \
+ -DAQSIS_FLTK_LIBRARIES_DIR:PATH=${LOCALBSAE}/lib
-do-build:
- cd ${WRKSRC} && scons ${SCONS_FLAGS} build
-
-do-install:
- cd ${WRKSRC} && scons ${SCONS_FLAGS} install
+USE_LDCONFIG= yes
+USE_CMAKE= yes
+
+post-configure:
+ ${FIND} ${WRKSRC} -name "build.make" -o -name "link.txt" -o -name "relink.txt" \
+ | ${XARGS} ${REINPLACE_CMD} -i "" -e 's|-ldl||g'
+ ${REINPLACE_CMD} -e 's|-lz|-lz ${PTHREAD_LIBS}|' \
+ ${WRKSRC}/renderer/aqsis/CMakeFiles/aqsis.dir/link.txt \
+ ${WRKSRC}/texturing/teqser/CMakeFiles/teqser.dir/link.txt
+ ${REINPLACE_CMD} -e 's|-O2|-O2 ${PTHREAD_LIBS}|' \
+ ${WRKSRC}/shadercompiler/aqsltell/CMakeFiles/aqsltell.dir/link.txt
.include <bsd.port.mk>