diff options
author | skreuzer <skreuzer@FreeBSD.org> | 2012-04-06 02:10:28 +0800 |
---|---|---|
committer | skreuzer <skreuzer@FreeBSD.org> | 2012-04-06 02:10:28 +0800 |
commit | 6933d6921fbbb9d5a1a1dd29d13e199119f805bb (patch) | |
tree | a642db58b1649a8da426e9fd074ca37b867035ff /shells | |
parent | 5964ea6790c43ff45652fadaf730168eee227e8f (diff) | |
download | freebsd-ports-graphics-6933d6921fbbb9d5a1a1dd29d13e199119f805bb.tar.gz freebsd-ports-graphics-6933d6921fbbb9d5a1a1dd29d13e199119f805bb.tar.zst freebsd-ports-graphics-6933d6921fbbb9d5a1a1dd29d13e199119f805bb.zip |
Change the default behavior to create a dynamically linked binary
Add a WITH_STATIC knob to create a statically linked binary
Remove dead MASTER_SITE
Reported by: Andy Kosela <akosela@andykosela.com>
Feature safe: yes
Diffstat (limited to 'shells')
-rw-r--r-- | shells/pdksh/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/shells/pdksh/Makefile b/shells/pdksh/Makefile index e5d5feb90d0..24f2e5ab2b1 100644 --- a/shells/pdksh/Makefile +++ b/shells/pdksh/Makefile @@ -7,10 +7,9 @@ PORTNAME= pdksh PORTVERSION= 5.2.14p2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= shells -MASTER_SITES= ftp://ftp.cs.mun.ca/pub/pdksh/ \ - http://gd.tuwien.ac.at/utils/shells/pdksh/ \ +MASTER_SITES= http://gd.tuwien.ac.at/utils/shells/pdksh/ \ ftp://ftp.lip6.fr/pub/unix/shells/pdksh/ \ ftp://ftp.demon.net/pub/mirrors/pdksh/ DISTNAME= ${PORTNAME}-${PORTVERSION:C/p.*//} @@ -23,9 +22,14 @@ MAINTAINER= skreuzer@FreeBSD.org COMMENT= The Public Domain Korn Shell GNU_CONFIGURE= yes -CONFIGURE_ENV= LDSTATIC=-static MAN1= ksh.1 +.include <bsd.port.options.mk> + +.if defined(WITH_STATIC) +CONFIGURE_ENV+= LDSTATIC=-static +.endif + post-patch: @(${ECHO_CMD} ",s/v${PORTVERSION:C/p.*//}/v${PORTVERSION:S/p/./}/"; \ ${ECHO_CMD} "wq") | ed -s ${WRKSRC}/version.c |