diff options
author | Cy Schubert <cy@FreeBSD.org> | 2018-09-22 23:31:56 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2018-09-22 23:31:56 +0000 |
commit | 2e5f5c3d74798f6b734bb5e96cb82d36b978ace1 (patch) | |
tree | 4709fcfaaaf42a5b41e3d8f7cf6ce392fd29f871 /shells/ksh93-devel/Makefile | |
parent | net/mpd5: mark broken with openssl111 for a moment (diff) |
As ksh93 is the real ksh devleoped by AT&T, git the user the option
of installing ksh as ${LOCALBASE}/bin/ksh instead of as
${LOCALBASE}/bin/ksh93. If the KSH option is chosen, this port will
conflict with shells/pdksh. By default the binary that is installed is
ksh93 (conflicting with shells/ksh).
In the future, we might want to add a little ports infrastructure
allowing ports that need a ksh to depend on one of the various ksh or
ksh clones in ports.
Notes
Notes:
svn path=/head/; revision=480437
Diffstat (limited to 'shells/ksh93-devel/Makefile')
-rw-r--r-- | shells/ksh93-devel/Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/shells/ksh93-devel/Makefile b/shells/ksh93-devel/Makefile index 31af9843915d..a262bb29c884 100644 --- a/shells/ksh93-devel/Makefile +++ b/shells/ksh93-devel/Makefile @@ -27,7 +27,8 @@ GH_ACCOUNT= att GH_PROJECT= ast GH_TAGNAME= ${HASH} -CONFLICTS= ksh93-* +KSH93_CONFLICTS= ksh93-* +KSH_CONFLICTS= pdksh-* USES= meson ninja FETCH_ENV= HTTP_AUTH=basic:*:I\ accept\ www.opensource.org/licenses/cpl:. @@ -39,13 +40,27 @@ STATIC_MAKE_ENV= LDFLAGS+=-static BROKEN_aarch64= Fails to compile: needs sbrk +OPTIONS_DEFAULT= KSH93 +OPTIONS_SINGLE= BIN_KSH +OPTIONS_SINGLE_BIN_KSH= KSH KSH93 +KSH_DESC= Install to ${PREFIX}/bin/ksh +KSH93_DESC= Install to ${PREFIX}/bin/ksh93 + +KSH93_EXTRA_PATCHES= ${FILESDIR}/extra-patch-install-as-ksh93 +KSH93_DESC= Install to ${PREFIX}/bin/ksh93 + +KSH_PLIST_SUB= 93="" +KSH93_PLIST_SUB= 93="93" + .include <bsd.port.pre.mk> post-patch: .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100093 @${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' ${WRKSRC}/src/lib/libast/include/sfio*.h ${WRKSRC}/src/lib/libast/sfio/*.c .endif +.if ${PORT_OPTIONS:MKSH93} @${MV} ${WRKSRC}/src/cmd/ksh93/ksh.1 ${WRKSRC}/src/cmd/ksh93/ksh93.1 +.endif do-test: cd ${WRKSRC}/src/cmd/ksh93/tests/ && ${SETENV} SHELL=${WRKSRC}/bin/ksh ${WRKSRC}/bin/ksh shtests |