[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / shells / ast-ksh

Annotation of pkgsrc/shells/ast-ksh/Makefile.common, Revision 1.22

1.22    ! rillig      1: # $NetBSD: Makefile.common,v 1.21 2006/10/03 14:32:37 obache Exp $
1.1       uebayasi    2:
                      3: DISTNAME=      ast-ksh-${ASTKSH_VERSION}
                      4: PKGNAME=       ast-ksh-${ASTKSH_VERSION:S/-//g}
                      5: CATEGORIES=    shells
1.20      hubertf     6: MASTER_SITES=  \
                      7:                http://ftp.ntua.gr/pub/linux/openpkg/sources/DST/ksh/ \
                      8:                ftp://ftp.ntua.gr/pub/linux/openpkg/sources/DST/ksh/ \
                      9:                http://www.research.att.com/~gsf/download/tgz/
1.1       uebayasi   10: DISTFILES=     INIT.${ASTKSH_VERSION}.tgz ast-ksh.${ASTKSH_VERSION}.tgz
                     11:
1.19      jlam       12: MAINTAINER=    pkgsrc-users@NetBSD.org
1.1       uebayasi   13: HOMEPAGE=      http://www.kornshell.com/
1.7       reed       14: COMMENT=       Official AT&T release of KornShell 93
1.1       uebayasi   15:
1.18      rillig     16: NOT_FOR_PLATFORM=      Interix-*-* # taking nearly a day to build and crash!
1.12      tv         17:
1.1       uebayasi   18: CONFLICTS=     static-ast-ksh-[0-9]*
                     19: KSH93_MAKEFLAGS=
                     20:
1.18      rillig     21: RESTRICTED=    Terms for redistribution are not yet clear.
1.1       uebayasi   22: NO_BIN_ON_CDROM=${RESTRICTED}
                     23: NO_BIN_ON_FTP= ${RESTRICTED}
                     24: NO_SRC_ON_CDROM=${RESTRICTED}
                     25: NO_SRC_ON_FTP= ${RESTRICTED}
                     26:
1.21      obache     27: ASTKSH_VERSION=        2006-02-14
1.1       uebayasi   28:
1.8       agc        29: WRKSRC=                ${WRKDIR}
1.16      rillig     30: MAKE_FLAGS+=   CC=${CC:Q} CCFLAGS=${CFLAGS:M*:Q}
1.1       uebayasi   31:
                     32: .include "../../mk/bsd.prefs.mk"
                     33:
                     34: .if ${OPSYS} == "NetBSD"
                     35: PDKSH=         /bin/ksh
                     36: .endif
                     37:
1.15      jlam       38: PKG_SHELL=     bin/ksh93
1.1       uebayasi   39:
1.22    ! rillig     40: INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
1.14      jlam       41:
1.1       uebayasi   42: # ${KSH93_MAKEFLAGS} is set as "LDFLAGS=-static" only when built as a
                     43: # static binary.
                     44: #
                     45: # XXX Note that 'make' here is not an executable command name, but a target
                     46: # name which the ./bin/package script uses.
                     47: do-build:
1.18      rillig     48:        @cd ${WRKSRC:Q} && \
                     49:                ${SETENV} SHELL=${PDKSH:Q} \
                     50:                        ${PDKSH:Q} ./bin/package make ${KSH93_MAKEFLAGS}
1.1       uebayasi   51:
                     52: do-install:
1.18      rillig     53:        @set -e;                                                        \
                     54:        arch=`${WRKSRC:Q}/bin/package host`;                            \
                     55:        ${INSTALL_PROGRAM} ${WRKSRC:Q}/arch/"$${arch}"/bin/ksh          \
                     56:                ${PREFIX:Q}/bin/ksh93;                                  \
                     57:        ${INSTALL_MAN} ${WRKSRC:Q}/arch/"$${arch}"/man/man1/sh.1        \
                     58:                ${PREFIX:Q}/man/man1/ksh93.1
1.1       uebayasi   59:
                     60: # Part of regression test
                     61: do-test:
1.18      rillig     62:        @cd ${WRKSRC:Q}/src/cmd/ksh93/tests && \
                     63:                ${SETENV} SHELL=${PREFIX:Q}/bin/ksh93 ${PREFIX:Q}/bin/ksh93 shtests
1.1       uebayasi   64: # XXX Their 'test' target needs nmake (Korn's another tool)
                     65: #      @cd ${WRKSRC}; \
                     66: #              ${SETENV} SHELL=${PDKSH} ${PDKSH} ./bin/package test

CVSweb <webmaster@jp.NetBSD.org>