1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

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
This commit is contained in:
Steven Kreuzer 2012-04-05 18:10:28 +00:00
parent 400b0334dc
commit ccdd14583c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294252

View File

@ -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