svn commit: r308843 - head/science/hdf-java

Baptiste Daroussin bapt at FreeBSD.org
Thu Dec 13 10:47:44 UTC 2012


Author: bapt
Date: Thu Dec 13 10:47:44 2012
New Revision: 308843
URL: http://svnweb.freebsd.org/changeset/ports/308843

Log:
  Convert to new option framework

Modified:
  head/science/hdf-java/Makefile

Modified: head/science/hdf-java/Makefile
==============================================================================
--- head/science/hdf-java/Makefile	Thu Dec 13 10:36:08 2012	(r308842)
+++ head/science/hdf-java/Makefile	Thu Dec 13 10:47:44 2012	(r308843)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	hdf-java
-# Date created:				11 February 2010
-# Whom:					rfarmer at predatorlabs.net
-#
+# Created by: rfarmer at predatorlabs.net
 # $FreeBSD$
-#
 
 PORTNAME=	hdf-java
 PORTVERSION=	2.8
@@ -37,17 +33,18 @@ CONFIGURE_ARGS=	--with-jdk=${JAVA_HOME}/
 
 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}/)


More information about the svn-ports-all mailing list