Date: Fri, 20 Aug 2004 17:49:37 +0800 (CST) From: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Cc: horance@freera.net Subject: ports/70698: Enable OPTIONS feature of ports/devel/swarm Message-ID: <200408200949.i7K9nbis044335@alumni.csie.nctu.edu.tw> Resent-Message-ID: <200408200950.i7K9oFgN065974@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 70698 >Category: ports >Synopsis: Enable OPTIONS feature of ports/devel/swarm >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Aug 20 09:50:15 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Ying-Chieh Chen >Release: FreeBSD 4.10-STABLE i386 >Organization: NCTU CSIE >Environment: System: FreeBSD alumni 4.10-STABLE FreeBSD 4.10-STABLE #25: Fri Jul 2 07:46:15 CST 2004 wcpan@ccduty:/bsdhome/bsd4/obj/bsdhome/bsd4/src/sys/CSIEBSD i386 >Description: Enable OPTIONS feature of ports/devel/swarm >How-To-Repeat: cd /usr/ports/devel/swarm Apply the patch make install >Fix: --- swarm.patch begins here --- diff -ruN /usr/ports/devel/swarm/Makefile swarm/Makefile --- /usr/ports/devel/swarm/Makefile Sat Jul 31 23:58:35 2004 +++ swarm/Makefile Fri Aug 20 17:45:07 2004 @@ -15,9 +15,6 @@ 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 @@ --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 @@ -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> --- swarm.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408200949.i7K9nbis044335>