aboutsummaryrefslogtreecommitdiff
path: root/math/cgal/Makefile
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-09-20 01:12:09 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-09-20 01:12:09 +0000
commita0c6ba507d9a8236373a30162c6a2970d84d23b1 (patch)
tree5dde1b96146761b084787ad02476d7bc5e701f07 /math/cgal/Makefile
parente68bc654e96535a34cca9b8637f8ecdbc28dc7cf (diff)
downloadports-a0c6ba507d9a8236373a30162c6a2970d84d23b1.tar.gz
ports-a0c6ba507d9a8236373a30162c6a2970d84d23b1.zip
Notes
Diffstat (limited to 'math/cgal/Makefile')
-rw-r--r--math/cgal/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/math/cgal/Makefile b/math/cgal/Makefile
index 16d1e9f8f4b6..b3accfdccb35 100644
--- a/math/cgal/Makefile
+++ b/math/cgal/Makefile
@@ -20,26 +20,19 @@ LIB_DEPENDS= libmpfr.so:${PORTSDIR}/math/mpfr \
USE_LDCONFIG= yes
USES= cmake tar:bzip2 shebangfix
+USE_QT4= corelib qmake_build moc_build rcc_build uic_build svg
+CMAKE_ARGS= -DWITH_CGAL_Qt3=OFF
SHEBANG_FILES= scripts/cgal_create_CMakeLists
HAS_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= GUI
OPTIONS_DEFAULT= GUI
-GUI_DESC= Build libCGAL_ImageIO and libCGAL_Qt4
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGUI}
-USE_QT4= corelib qmake_build moc_build rcc_build uic_build gui opengl svg
-LIB_DEPENDS+= libGLU.so:${PORTSDIR}/graphics/libGLU
-CMAKE_ARGS= -DWITH_CGAL_Qt3=OFF
-PLIST_SUB+= GUI=""
-.else
-USE_QT4= corelib qmake_build moc_build rcc_build svg uic_build
-CMAKE_ARGS= -DWITH_CGAL_Qt4=OFF -DWITH_CGAL_ImageIO=OFF -DWITH_CGAL_Qt3=OFF
-PLIST_SUB+= GUI="@comment "
-.endif
+GUI_DESC= Build libCGAL_ImageIO and libCGAL_Qt4
+GUI_USE= GL=glu QT4=gui,opengl
+GUI_CMAKE_OFF= -DWITH_CGAL_Qt4=OFF -DWITH_CGAL_ImageIO=OFF
post-install:
${INSTALL_MAN} ${WRKSRC}/auxiliary/cgal_create_cmake_script.1 ${STAGEDIR}${PREFIX}/man/man1/