summaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-13 10:47:44 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-13 10:47:44 +0000
commitd7f85b72cfcd04463c227bc07bf52d4a6362f648 (patch)
tree3fe0b0cca06f21b5fceb057b31cfd75f8c7f11e5 /science
parentAdd devel/p5-Data-Thunk 0.07, a Perl module implementing lazy evaluation. (diff)
Convert to new option framework
Notes
Notes: svn path=/head/; revision=308843
Diffstat (limited to 'science')
-rw-r--r--science/hdf-java/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/science/hdf-java/Makefile b/science/hdf-java/Makefile
index 258031404369..9a09ed826bef 100644
--- a/science/hdf-java/Makefile
+++ b/science/hdf-java/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hdf-java
-# Date created: 11 February 2010
-# Whom: rfarmer@predatorlabs.net
-#
+# Created by: rfarmer@predatorlabs.net
# $FreeBSD$
-#
PORTNAME= hdf-java
PORTVERSION= 2.8
@@ -37,17 +33,18 @@ CONFIGURE_ARGS= --with-jdk=${JAVA_HOME}/include,${JAVA_HOME}/jre/lib/ \
WRKSRC= ${WRKDIR}/${PORTNAME}
-OPTIONS= SZIP "SZIP support (must match with science/hdf5-18)" off
+OPTIONS_DEFINE= SZIP DOCS
+SZIP_DESC= SZIP support (must match with science/hdf5-18)
.include <bsd.port.options.mk>
-.if defined(WITH_SZIP)
+.if ${PORT_OPTIONS:MSZIP}
CONFIGURE_ARGS+= --with-libsz=${LOCALBASE}/lib
.else
CONFIGURE_ARGS+= --without-libsz
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET= all javadocs
.endif
@@ -67,7 +64,7 @@ post-patch:
${WRKSRC}/bin/hdfview.sh.in
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/UsersGuide
(cd ${WRKSRC}/docs/hdfview/ && ${COPYTREE_SHARE} "UsersGuide" ${DOCSDIR}/)
(cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} "javadocs" ${DOCSDIR}/)