2002-10-28 14:00:09 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2002/10/28 19:00:09 naddy Exp $
|
2001-07-12 15:17:24 -04:00
|
|
|
|
|
|
|
COMMENT= "official AT&T release of KornShell 93"
|
|
|
|
|
|
|
|
PKGNAME= ast-ksh-${VERSION:S/-//g}
|
2002-09-28 16:28:46 -04:00
|
|
|
VERSION= 2002-09-22
|
2001-07-12 15:17:24 -04:00
|
|
|
CATEGORIES= shells
|
|
|
|
HOMEPAGE= http://www.kornshell.com/
|
|
|
|
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2001-11-20 20:17:43 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
PERMIT_PACKAGE_FTP= No
|
2001-07-12 15:17:24 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= No
|
|
|
|
PERMIT_DISTFILES_FTP= No
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.research.att.com/~gsf/download/tgz/
|
|
|
|
DISTFILES= INIT.${VERSION}.tgz ast-ksh.${VERSION}.tgz
|
|
|
|
|
|
|
|
FLAVORS= static
|
|
|
|
FLAVOR?=
|
|
|
|
|
2002-06-23 07:58:48 -04:00
|
|
|
MAKE_ENV= CC="${CC}" CCFLAGS="${CFLAGS}" SHELL="/bin/sh"
|
2001-07-12 15:17:24 -04:00
|
|
|
.if ${FLAVOR:L} == "static"
|
2002-06-23 07:58:48 -04:00
|
|
|
MAKE_ENV+= LDFLAGS=-static
|
2001-07-12 15:17:24 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
|
|
|
|
do-build:
|
2002-07-22 11:17:14 -04:00
|
|
|
cd ${WRKBUILD} && env -i ${MAKE_ENV} /bin/sh bin/package make
|
2001-07-12 15:17:24 -04:00
|
|
|
|
2002-10-28 14:00:09 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-07-12 15:17:24 -04:00
|
|
|
do-install:
|
2002-03-13 17:19:44 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/arch/openbsd.${MACHINE_ARCH}/bin/ksh \
|
2001-07-12 15:17:24 -04:00
|
|
|
${PREFIX}/bin/ksh93
|
2002-03-13 17:19:44 -05:00
|
|
|
${INSTALL_MAN} ${WRKBUILD}/arch/openbsd.${MACHINE_ARCH}/man/man1/sh.1 \
|
2001-07-12 15:17:24 -04:00
|
|
|
${PREFIX}/man/man1/ksh93.1
|
2002-07-22 11:17:14 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ast-ksh
|
|
|
|
.for fun in dirs popd
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/arch/openbsd.${MACHINE_ARCH}/fun/${fun} \
|
|
|
|
${PREFIX}/share/examples/ast-ksh/
|
|
|
|
.endfor
|
2001-07-12 15:17:24 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|