diff options
author | makc <makc@FreeBSD.org> | 2015-08-25 18:03:08 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2015-08-25 18:03:08 +0800 |
commit | 9e5654a5c0aea99f1b9b5daff162b08b49242b7b (patch) | |
tree | 542278ecb4449b3df78960fd5f6cf7d8be50914f /science/kst2 | |
parent | 76858881403322c6f97767f7d23afe1a13ec5546 (diff) | |
download | freebsd-ports-gnome-9e5654a5c0aea99f1b9b5daff162b08b49242b7b.tar.gz freebsd-ports-gnome-9e5654a5c0aea99f1b9b5daff162b08b49242b7b.tar.zst freebsd-ports-gnome-9e5654a5c0aea99f1b9b5daff162b08b49242b7b.zip |
Convert my ports to new options helpers
Diffstat (limited to 'science/kst2')
-rw-r--r-- | science/kst2/Makefile | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/science/kst2/Makefile b/science/kst2/Makefile index 3c8d2e4e8df3..a345ee0acc64 100644 --- a/science/kst2/Makefile +++ b/science/kst2/Makefile @@ -38,32 +38,27 @@ MATLAB_LIB_DEPENDS= libmatio.so:${PORTSDIR}/math/matio NETCDF_DESC= Support for data in NetCDF format (broken) NETCDF_LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf +NETCDF_IGNORE= does not support NetCDF 4 TOOLKIT_DESC= Qt toolkit QT4_USE= ${_USE_QT4:S/^/QT4=/} QT5_USE= ${_USE_QT5:S/^/QT5=/} QT5_CMAKE_ON= -Dkst_qt5=on -.include <bsd.port.options.mk> - post-patch: ${REINPLACE_CMD} -e '/^Exec=kst2/s,\(kst2\).*,\1 %f,' \ ${WRKSRC}/src/kst/kst2.desktop -pre-configure: -.if !${PORT_OPTIONS:MFITS} +post-patch-FITS-off: ${REINPLACE_CMD} -e '/find_package(CFITSIO)/d' \ ${CMAKE_SOURCE_PATH}/CMakeLists.txt -.endif -.if !${PORT_OPTIONS:MMATLAB} + +post-patch-MATLAB-off: ${REINPLACE_CMD} -e '/find_package(Matio)/d' \ ${CMAKE_SOURCE_PATH}/CMakeLists.txt -.endif -.if !${PORT_OPTIONS:MNETCDF} + +post-patch-NETCDF-off: ${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \ ${CMAKE_SOURCE_PATH}/CMakeLists.txt -.else -IGNORE= does not support NetCDF 4 -.endif .include <bsd.port.mk> |