aboutsummaryrefslogtreecommitdiff
path: root/science/kst2
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2015-08-25 10:03:08 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2015-08-25 10:03:08 +0000
commitc7c32639cce504dbfefa9d1a09034d60600acaca (patch)
tree542278ecb4449b3df78960fd5f6cf7d8be50914f /science/kst2
parent42aab3eb75f5152697ee03e5e8457ce58906e2c1 (diff)
downloadports-c7c32639cce504dbfefa9d1a09034d60600acaca.tar.gz
ports-c7c32639cce504dbfefa9d1a09034d60600acaca.zip
Convert my ports to new options helpers
Notes
Notes: svn path=/head/; revision=395231
Diffstat (limited to 'science/kst2')
-rw-r--r--science/kst2/Makefile17
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>