summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-02-26 07:09:50 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-02-26 07:09:50 +0000
commitde90ca6b109f73c8c4b618fea0a9b3211bd486a9 (patch)
tree0b1e6844755dfd34b1956bd3c808fd34be461c09 /shells
parentUpdate emulators/i386-wine-devel to 1.7.13. (diff)
post-install is not needed anymore when staged [1]
While here: use optionsng Reported by: miwi [1]
Notes
Notes: svn path=/head/; revision=346118
Diffstat (limited to 'shells')
-rw-r--r--shells/pdksh/Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/shells/pdksh/Makefile b/shells/pdksh/Makefile
index b9d4b656a9e4..a82fb848b919 100644
--- a/shells/pdksh/Makefile
+++ b/shells/pdksh/Makefile
@@ -19,23 +19,14 @@ COMMENT= The Public Domain Korn Shell
LICENSE= BSD3CLAUSE
-GNU_CONFIGURE= yes
+OPTIONS_DEFINE= STATIC
-.include <bsd.port.options.mk>
+GNU_CONFIGURE= yes
-.if defined(WITH_STATIC)
-CONFIGURE_ENV+= LDSTATIC=-static
-.endif
+STATIC_CONFIGURE_ENV+= LDSTATIC=-static
post-patch:
@(${ECHO_CMD} ",s/v${PORTVERSION:C/p.*//}/v${PORTVERSION:S/p/./}/"; \
${ECHO_CMD} "wq") | ed -s ${WRKSRC}/version.c
-post-install:
- @${ECHO} "Updating /etc/shells"
- @${CP} /etc/shells /etc/shells.bak
- @(${GREP} -v "${PREFIX}/bin/ksh$$" /etc/shells.bak; \
- ${ECHO_CMD} ${PREFIX}/bin/ksh) > /etc/shells
- @${RM} /etc/shells.bak
-
.include <bsd.port.mk>