aboutsummaryrefslogtreecommitdiff
path: root/math/cgal/Makefile
diff options
context:
space:
mode:
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/