diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-08-21 09:39:42 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-08-21 09:39:42 +0000 |
commit | 4d92f8cf2acac9509e62e71969c93891028797f9 (patch) | |
tree | 5de99dea3189dd32e8e71be1cbd9e82acc4dd071 /devel/swarm | |
parent | fe789a4553bbf85a7e73457cd72bf7e9d0f895ad (diff) |
Notes
Diffstat (limited to 'devel/swarm')
-rw-r--r-- | devel/swarm/Makefile | 22 |
1 files changed, 9 insertions, 13 deletions
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 <bsd.port.pre.mk> + +.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 <bsd.port.mk> +.include <bsd.port.post.mk> |