summaryrefslogtreecommitdiff
path: root/science/hdf5-18
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 22:08:22 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 22:08:22 +0000
commit70311449fae75ffea4fd9f53366895a06b4bc897 (patch)
treedcad9bcb676fb6eb1edd275685eb3589f7f31419 /science/hdf5-18
parentdatabases/py-redis: Update to 2.7.4 (diff)
Convert science to new options framework
Notes
Notes: svn path=/head/; revision=316757
Diffstat (limited to 'science/hdf5-18')
-rw-r--r--science/hdf5-18/Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/science/hdf5-18/Makefile b/science/hdf5-18/Makefile
index 00b10cfff0ff..2844c72ec0e9 100644
--- a/science/hdf5-18/Makefile
+++ b/science/hdf5-18/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hdf5-18
-# Date created: Nov 20, 2008
-# Whom: Wen Heping <wenheping@gmail.com>
-#
+# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
-#
PORTNAME= hdf5
PORTVERSION= 1.8.9
@@ -29,17 +25,17 @@ CONFIGURE_ARGS= --enable-cxx \
--with-pthread=/usr \
--with-zlib=/usr
-OPTIONS= DEBUG "Debug" off \
- FORTRAN "Fortran support" off \
- SZIP "SZIP support" off
+OPTIONS_DEFINE= DEBUG FORTRAN SZIP EXAMPLES
+FORTRAN_DESC= Fortran support
+SZIP_DESC= SZIP support
.include <bsd.port.pre.mk>
-.if defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug=all --disable-production
.endif
-.if defined(WITH_FORTRAN)
+.if ${PORT_OPTIONS:MFORTRAN}
USE_FORTRAN= yes
CONFIGURE_ENV+= F9X=${FC}
CONFIGURE_ARGS+=--enable-fortran
@@ -48,7 +44,7 @@ PLIST_SUB+= FORTRAN=""
PLIST_SUB+= FORTRAN="@comment "
.endif
-.if defined(WITH_SZIP)
+.if ${PORT_OPTIONS:MSZIP}
LIB_DEPENDS+= sz:${PORTSDIR}/science/szip
CONFIGURE_ARGS+=--with-szlib=${LOCALBASE}
.endif
@@ -66,7 +62,7 @@ post-patch:
-e 's|(INSTALL)|(INSTALL_DATA)|' \
`${FIND} ${WRKSRC} -regex '.*/examples/Makefile.in'`
@${REINPLACE_CMD} -e 's|\[ -a|\[ -f|g' `${FIND} ${WRKSRC} -name \*.sh\*`
-.if defined(NOPORTEXAMPLES)
+.if ! ${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -e '/^install:/ s|install-examples||' ${WRKSRC}/Makefile.in
.endif