2001-02-26 05:14:17 +00:00
|
|
|
# New ports collection makefile for: ksh93
|
|
|
|
# Date created: 2000-12-26
|
|
|
|
# Whom: Christian Weisgerber <naddy@mips.inka.de>
|
1999-11-26 20:43:23 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2000-04-09 18:34:06 +00:00
|
|
|
|
2001-02-26 05:14:17 +00:00
|
|
|
PORTNAME= ksh93
|
2001-08-04 03:51:41 +00:00
|
|
|
PORTVERSION= ${VERSION:S/-//g}
|
2001-02-26 05:14:17 +00:00
|
|
|
CATEGORIES= shells
|
|
|
|
MASTER_SITES= http://www.research.att.com/~gsf/download/tgz/
|
2001-12-02 17:43:15 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${VERSION}
|
|
|
|
DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2001-02-26 05:14:17 +00:00
|
|
|
|
2004-03-18 02:07:14 +00:00
|
|
|
MAINTAINER= joe@zircon.seattle.wa.us
|
2003-02-21 12:52:52 +00:00
|
|
|
COMMENT= Official AT&T release of KornShell 93
|
1999-11-26 20:43:23 +00:00
|
|
|
|
2004-03-18 01:51:29 +00:00
|
|
|
VERSION= 2004-02-29
|
2001-08-04 03:51:41 +00:00
|
|
|
RESTRICTED= "Source recipient must acknowledge license"
|
1999-11-26 20:43:23 +00:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
2002-06-23 11:55:28 +00:00
|
|
|
MAKE_ENV= CCFLAGS="${CFLAGS}" SHELL="${SH}"
|
2001-12-02 17:43:15 +00:00
|
|
|
.if defined(WANT_STATIC)
|
2002-06-23 11:55:28 +00:00
|
|
|
MAKE_ENV+= LDFLAGS=-static
|
2001-12-02 17:43:15 +00:00
|
|
|
.endif
|
2001-02-26 05:14:17 +00:00
|
|
|
|
1999-11-26 20:43:23 +00:00
|
|
|
MAN1= ksh93.1
|
2003-06-24 18:16:19 +00:00
|
|
|
INSTALLROOT= ${WRKSRC}/arch/freebsd.${ARCH}
|
2001-02-26 05:14:17 +00:00
|
|
|
|
2004-03-05 12:13:42 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= "Does not compile on sparc64"
|
|
|
|
.endif
|
|
|
|
|
2001-02-26 05:14:17 +00:00
|
|
|
do-build:
|
2002-07-22 14:52:05 +00:00
|
|
|
@cd ${WRKSRC} && env -i ${MAKE_ENV} ${SH} bin/package make
|
1999-11-26 20:43:23 +00:00
|
|
|
|
|
|
|
do-install:
|
2003-06-24 18:16:19 +00:00
|
|
|
${INSTALL_PROGRAM} ${INSTALLROOT}/bin/ksh ${PREFIX}/bin/ksh93
|
|
|
|
${INSTALL_MAN} ${INSTALLROOT}/man/man1/sh.1 \
|
2002-05-03 22:32:21 +00:00
|
|
|
${MANPREFIX}/man/man1/ksh93.1
|
2002-07-22 14:52:05 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/ksh93
|
2004-03-18 01:51:29 +00:00
|
|
|
.for fun in dirs popd pushd
|
2003-06-24 18:16:19 +00:00
|
|
|
${INSTALL_SCRIPT} ${INSTALLROOT}/fun/${fun} \
|
2002-07-22 14:52:05 +00:00
|
|
|
${PREFIX}/share/examples/ksh93/
|
|
|
|
.endfor
|
1999-12-31 02:10:55 +00:00
|
|
|
|
2001-08-31 05:56:31 +00:00
|
|
|
post-install:
|
|
|
|
@${ECHO} "updating /etc/shells"
|
|
|
|
@${CP} /etc/shells /etc/shells.bak
|
|
|
|
@(${GREP} -v ${PREFIX}/bin/ksh93 /etc/shells.bak; \
|
2002-01-29 11:58:52 +00:00
|
|
|
${ECHO_CMD} ${PREFIX}/bin/ksh93) >/etc/shells
|
2001-08-31 05:56:31 +00:00
|
|
|
@${RM} -f /etc/shells.bak
|
|
|
|
|
2003-06-24 18:16:19 +00:00
|
|
|
test: build
|
|
|
|
@cd ${WRKSRC}/src/cmd/ksh93/tests && \
|
|
|
|
${SETENV} SHELL=${INSTALLROOT}/bin/ksh \
|
|
|
|
${INSTALLROOT}/bin/ksh shtests
|
|
|
|
|
2004-03-05 12:13:42 +00:00
|
|
|
.include <bsd.port.post.mk>
|