diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2007-07-03 18:49:35 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2007-07-03 18:49:35 +0000 |
commit | 66c3e2140dbaac5d6e10f546985763dc72b088c9 (patch) | |
tree | 121c1d503555ded1775f3da5050e736ffdaa2aa9 | |
parent | 5a603e32e6ca8333270771d9075c6cd797540086 (diff) | |
download | ports-66c3e2140dbaac5d6e10f546985763dc72b088c9.tar.gz ports-66c3e2140dbaac5d6e10f546985763dc72b088c9.zip |
Notes
-rw-r--r-- | sysutils/env4801/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sysutils/env4801/Makefile b/sysutils/env4801/Makefile index a0658ca06662..27f836d24f3e 100644 --- a/sysutils/env4801/Makefile +++ b/sysutils/env4801/Makefile @@ -7,6 +7,7 @@ PORTNAME= env4801 PORTVERSION= 0.3 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://phk.freebsd.dk/soekris/env4801/ DISTFILES= Makefile env4801.c @@ -25,6 +26,15 @@ MAKE_ARGS= -DNOMAN PLIST_FILES= sbin/env4801 etc/rc.d/env4801.sh +OPTIONS= STATIC "Build a statically linked executable" On + +.include <bsd.port.pre.mk> + +post-patch: +.ifdef(WITHOUT_STATIC) + @${REINPLACE_CMD} -e '/-static/d' ${WRKSRC}/Makefile +.endif + post-extract: @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/env4801.sh > ${WRKSRC}/env4801.sh @@ -36,4 +46,4 @@ do-install: post-install: @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |