diff options
author | bapt <bapt@FreeBSD.org> | 2012-12-13 18:47:44 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-12-13 18:47:44 +0800 |
commit | f4cbed7d1661a7b24423e5868f679c2fd77b5d08 (patch) | |
tree | 3fe0b0cca06f21b5fceb057b31cfd75f8c7f11e5 /science/hdf-java | |
parent | d5f61ab5202cc9a0b0e7b4002944c6142fb00bc3 (diff) | |
download | freebsd-ports-gnome-f4cbed7d1661a7b24423e5868f679c2fd77b5d08.tar.gz freebsd-ports-gnome-f4cbed7d1661a7b24423e5868f679c2fd77b5d08.tar.zst freebsd-ports-gnome-f4cbed7d1661a7b24423e5868f679c2fd77b5d08.zip |
Convert to new option framework
Diffstat (limited to 'science/hdf-java')
-rw-r--r-- | science/hdf-java/Makefile | 15 |
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}/) |