From 4d92f8cf2acac9509e62e71969c93891028797f9 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sat, 21 Aug 2004 09:39:42 +0000 Subject: - Convert to OPTIONS PR: ports/70698 Submitted by: Ying-Chieh Chen Approved by: maintainer --- devel/swarm/Makefile | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'devel/swarm') diff --git a/devel/swarm/Makefile b/devel/swarm/Makefile index 53051e4c8dc8..537009ea9da5 100644 --- a/devel/swarm/Makefile +++ b/devel/swarm/Makefile @@ -15,9 +15,6 @@ MAINTAINER= horance@freera.net COMMENT= The Swarm Simulation System BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs -.if defined(WITH_HDF5) -LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5 -.endif LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ BLT24.3:${PORTSDIR}/x11-toolkits/blt @@ -38,6 +35,14 @@ CONFIGURE_ARGS= --with-defaultdir=${PREFIX} \ --with-jdkdir=${JAVA_HOME} \ --enable-subdirs +OPTIONS= HDF5 "HDF5 support" off + +.include + +.if defined(WITH_HDF5) +LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5 +.endif + post-patch: @${REINPLACE_CMD} \ -e 's|%%LTCONFIG%%|${LTCONFIG}|g' \ @@ -52,16 +57,7 @@ post-patch: -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \ ${WRKSRC}/avcall/configure -pre-everything:: -.if !defined(WITH_HDF5) - @${ECHO_MSG} "===>" - @${ECHO_MSG} "===> To enable hdf5 support , please define WITH_HDF5" - @${ECHO_MSG} "===>" -.endif - -post-patch: - post-install: ${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" -.include +.include -- cgit v1.2.3