diff options
author | bapt <bapt@FreeBSD.org> | 2013-12-27 16:39:32 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-12-27 16:39:32 +0800 |
commit | 1d2ef623a33f2b114733a2395bdf3e5bc80d8f6c (patch) | |
tree | f416f448c238ce0f3f3118f64f0d47e3a85ae7a7 /shells/mksh | |
parent | 92a3295d0a780314c57f75c69b0dff89095b6949 (diff) | |
download | freebsd-ports-gnome-1d2ef623a33f2b114733a2395bdf3e5bc80d8f6c.tar.gz freebsd-ports-gnome-1d2ef623a33f2b114733a2395bdf3e5bc80d8f6c.tar.zst freebsd-ports-gnome-1d2ef623a33f2b114733a2395bdf3e5bc80d8f6c.zip |
Support stage
Diffstat (limited to 'shells/mksh')
-rw-r--r-- | shells/mksh/Makefile | 28 | ||||
-rw-r--r-- | shells/mksh/pkg-plist | 1 |
2 files changed, 8 insertions, 21 deletions
diff --git a/shells/mksh/Makefile b/shells/mksh/Makefile index 930256733a23..66198641d046 100644 --- a/shells/mksh/Makefile +++ b/shells/mksh/Makefile @@ -9,31 +9,17 @@ MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \ DISTFILES= ${PORTNAME}-${DISTVERSION}.tgz MAINTAINER= miwi@FreeBSD.org -COMMENT= A MirBSD enhanced shell based on pdksh +COMMENT= MirBSD enhanced shell based on pdksh WRKSRC= ${WRKDIR}/${PORTNAME} -MAN1= mksh.1 - -NO_STAGE= yes -.include <bsd.port.pre.mk> - do-build: - cd ${WRKSRC} && CFLAGS="${CFLAGS}" CC="${CC}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r -c lto + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r -c lto do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/mksh ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${MANPREFIX}/man/man1 -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${EXAMPLESDIR} -.endif - -post-install: - @${ECHO_MSG} "updating /etc/shells" - @${CP} /etc/shells /etc/shells.bak - @(${GREP} -v ${PREFIX}/bin/mksh /etc/shells.bak; \ - ${ECHO_CMD} ${PREFIX}/bin/mksh) > /etc/shells - @${RM} /etc/shells.bak + ${INSTALL_PROGRAM} ${WRKSRC}/mksh ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${STAGEDIR}${MANPREFIX}/man/man1 + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${STAGEDIR}${EXAMPLESDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/shells/mksh/pkg-plist b/shells/mksh/pkg-plist index ad9e6f2d15c5..14a267d43eb8 100644 --- a/shells/mksh/pkg-plist +++ b/shells/mksh/pkg-plist @@ -1,4 +1,5 @@ bin/mksh +man/man1/mksh.1.gz @exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells @unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dot.mkshrc |