diff options
author | jlam <jlam> | 2007-08-07 19:38:11 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-08-07 19:38:11 +0000 |
commit | 66b28babbbdef5543ad2c25de1d9722cef65ea11 (patch) | |
tree | 1911a2bdc9a7566dc3d8e6b4227220a2fb970456 /shells/mksh/Makefile | |
parent | b2a44edee45800c64dce45a92429d5201cfb927a (diff) | |
download | pkgsrc-66b28babbbdef5543ad2c25de1d9722cef65ea11.tar.gz |
Update shells/mksh to version 30. Changes from version 29.6 include:
* If the basename of argv[0] starts with "sh", activate FPOSIX early,
preventing some typical ksh aliases from being defined.
* If FPOSIX, don't pre-define aliases (except integer and local) to
benefit operating environments that never heard of the great Korn Shell.
* Support x=(a b c) bash-like array initialisation
* Support ${foo:2:3} bash-like substring expansion
* Don't try to execute ELF, a.out, COFF, gzip or MZ binaries, e.g.
mksh /bin/sh.
* Prefer well-known signal names to alphabetically earlier ones
* Fix a bug delivering ERR and EXIT pseudo-signals to traps combined
with "set -e".
Update from mirabilos#pkgsrc with small fixups by me.
Diffstat (limited to 'shells/mksh/Makefile')
-rw-r--r-- | shells/mksh/Makefile | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/shells/mksh/Makefile b/shells/mksh/Makefile index 672033dddab..d9051198ee4 100644 --- a/shells/mksh/Makefile +++ b/shells/mksh/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.4 2007/06/20 17:20:45 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2007/08/07 19:38:11 jlam Exp $ -DISTNAME= mksh-R29f -PKGNAME= mksh-29.6 +DISTNAME= mksh-R30 +PKGNAME= ${DISTNAME:S/-R/-/} CATEGORIES= shells MASTER_SITES= http://www.mirbsd.org/MirOS/dist/mir/mksh/ \ http://pub.allbsd.org/MirOS/dist/mir/mksh/ @@ -19,39 +19,21 @@ PKG_DESTDIR_SUPPORT= user-destdir PKG_SHELL= bin/mksh -.include "../../mk/bsd.prefs.mk" - -PKG_OPTIONS_VAR= PKG_OPTIONS.mksh -PKG_SUPPORTED_OPTIONS= static - -.include "../../mk/bsd.options.mk" - -BUILD_PARMS= -r # don't call nRoff - -.if empty(PKG_OPTIONS:Mstatic) -BUILD_PARMS+= -d # build dynamically linked -.else -BUILD_PARMS+= -nd # build statically linked -.endif - -LIBS+= ${LDADD} -.if ${OPSYS} == "Interix" -LIBS+= -lcrypt -.endif +LIBS.Interix+= -lcrypt INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/mksh do-build: cd ${WRKBUILD} && LIBS=${LIBS:Q} CC=${CC:Q} CFLAGS=${CFLAGS:Q} \ CPPFLAGS=${CPPFLAGS:Q} LDFLAGS=${LDFLAGS:Q} \ - ${TOOLS_SHELL} ${WRKSRC}/Build.sh ${BUILD_PARMS} + ${TOOLS_SHELL} ${WRKSRC}/Build.sh -r do-install: ${INSTALL_PROGRAM} ${WRKBUILD}/mksh ${DESTDIR}${PREFIX}/bin/mksh ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${DESTDIR}${PREFIX}/share/examples/mksh/ -# comment this out if you do not want to run the regression tests +# Uncomment this if you want to run the regression tests #USE_TOOLS+= perl #do-test: # ${WRKBUILD}/test.sh -v |