diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-09-20 09:12:09 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-09-20 09:12:09 +0800 |
commit | 208dd6b4d17b23954ea4f4edcb4a699a49e4974c (patch) | |
tree | 5dde1b96146761b084787ad02476d7bc5e701f07 | |
parent | a291fef7114f486a68fced3666d7ee0ee902d797 (diff) | |
download | freebsd-ports-gnome-208dd6b4d17b23954ea4f4edcb4a699a49e4974c.tar.gz freebsd-ports-gnome-208dd6b4d17b23954ea4f4edcb4a699a49e4974c.tar.zst freebsd-ports-gnome-208dd6b4d17b23954ea4f4edcb4a699a49e4974c.zip |
math/cgal: minor cleanup
- Convert to USE_GL
- Convert to option helpers
- Deduplicate GUI option
Approved by: portmgr blanket
-rw-r--r-- | math/cgal/Makefile | 19 |
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/ |