diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2012-07-27 11:03:38 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2012-07-27 11:03:38 +0000 |
commit | 52e8b487f6dc73b0d0baafc955c59e83ab33c41a (patch) | |
tree | 167ee4bd8c4cd737246cf4e2c40f36e42042084e /science/kst2 | |
parent | dbe27c5fd4471209e8b77eecbae08f3a2ad57040 (diff) |
- Convert my ports to new options framework
- use CONFLICTS_INSTALL
- other minor changes
Notes
Notes:
svn path=/head/; revision=301600
Diffstat (limited to 'science/kst2')
-rw-r--r-- | science/kst2/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/science/kst2/Makefile b/science/kst2/Makefile index 798b51f5bd5e..2af1273bcdc0 100644 --- a/science/kst2/Makefile +++ b/science/kst2/Makefile @@ -29,19 +29,21 @@ CMAKE_ARGS+= -Dkst_install_prefix=${PREFIX} MAN1= kst2.1 PLIST_SUB= SHLIB_VER=${PORTVERSION} -OPTIONS= FITS "Support for data in FITS format" off \ - NETCDF "Support for data in NetCDF format" off +OPTIONS_DEFINE= FITS NETCDF + +FITS_DESC= Support for data in FITS format +NETCDF_DESC= Support for data in NetCDF format .include <bsd.port.options.mk> -.if defined(WITH_FITS) +.if ${PORT_OPTIONS:MFITS} LIB_DEPENDS+= cfitsio.0:${PORTSDIR}/astro/cfitsio PLIST_SUB+= FITS="" .else PLIST_SUB+= FITS="@comment " .endif -.if defined(WITH_NETCDF) +.if ${PORT_OPTIONS:MNETCDF} LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf PLIST_SUB+= NETCDF="" .else @@ -53,11 +55,11 @@ post-patch: ${WRKSRC}/src/kst/kst2.desktop pre-configure: -.if !defined(WITH_FITS) +.if !${PORT_OPTIONS:MFITS} ${REINPLACE_CMD} -e '/find_package(CFITSIO)/d' \ ${CMAKE_SOURCE_PATH}/CMakeLists.txt .endif -.if !defined(WITH_NETCDF) +.if !${PORT_OPTIONS:MNETCDF} ${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \ ${CMAKE_SOURCE_PATH}/CMakeLists.txt .endif |