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

File: [cvs.NetBSD.org] / pkgsrc / shells / ast-ksh / Makefile.common (download)

Revision 1.29, Fri May 25 17:08:46 2012 UTC (11 years, 10 months ago) by asau
Branch: MAIN
Changes since 1.28: +5 -9 lines

Update to AST/ksh to version 2012-02-29.
This unbreaks at least one of AST/ksh packages.


Changes since 2006-02-14:

2012-02-29

    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2012-02-29.2011-02-08.html

2011-02-08

    This source release contains the first official ksh93u.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2011-02-08.2010-08-26.html

2010-08-26

    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2010-08-26.2010-06-21.html

2010-06-21

    This source release contains the last official ksh93t+.
    The only updates for ksh93t+ will be hotfixes for serious bugs.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2010-06-21.2010-06-18.html

2010-03-09

    This source and binary release contains a fix for the
    2010-03-01 ksh memory leak plus a few minor fixes to clean
    up the bit rot that accumulated since 2009-07-04.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2010-03-09.2010-03-01.html

2010-03-01

    This source and binary release contains minor fixes to the
    unannounced 2010-02-02 release. It is the first official
    non-beta release in almost 8 months (we really do try to
    decrease the time between official releases, but the
    abundance of moving targets sometimes makes that
    interesting). See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2010-03-01.2010-02-02.html

2010-02-02

    This source and binary release includes:
      # fixes for problems reported by the OpenSolaris community
        as part of the ksh93 integration project
      # a UWIN update with initial support for Windows 7,
        improved handle and process resource management, and
        improved /var/log/uwin logging
      # an expanded man page index that includes the UWIN man
        pages in the U subsections and nmake(1) rule and operator
        man pages in the 1M subsection
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2010-02-02.2009-07-04.html

2009-07-04

    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2009-07-04.2009-05-05.html

2009-05-05

    This source and binary release cleans up a few reported
    build problems in the 2009-05-01 release (which has been
    removed). The release procedures have been adjusted to avoid
    similar problems in the future. (The main problem is
    synthesizing external non-ast environments to fully exercise
    portions of the build system seen by outside users -- since
    we use our stuff for everything, including packaging and
    building, setting up an environment that has no ast
    components leaking in can be non-trivial).
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2009-05-05.2009-05-01.html

2009-05-01

    This source release contains the official (and hopefully
    final) ksh93t+ 2009-05-01, along with updates for the ast
    commands and libraries. A lot of work went into cleaning up
    the regression tests -- most regressions directly correspond
    to unsupported native system features or buggy native system
    interfaces that we felt should be fixed rather than worked around.
    Of course we could be persuaded otherwise.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2009-05-01.2008-11-04.html

2008-11-04

    This source release contains the official ksh93t 2008-11-04,
    along with updates for a few ast-open commands, libraries and plugins.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2008-11-04.2008-07-25.html

2008-07-25

    This source release corrects the build problems in the 2008-06-24 source release.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2008-07-25.2008-06-24.html

2008-06-24

    This source release contains first release of ksh93t and support libraries.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2008-06-24.2008-02-02.html

2008-02-02

    This release addresses standalone build problems and issues
    raised on the lists. It also contains the final ksh93s+ release.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2008-02-02.2007-11-05.html

2007-11-05

    This release adresses issues raised on the lists.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2007-11-05.2007-03-28.html

2007-03-28

    Yes -- a new release in only 3 months. This release contains
    fixes and features that address the issues raised on the lists.
    A summary of recent ksh93 changes:
     1. Double precision floating point arithmetic with full C99
        arithmetic support on systems that provide the C99
        arithmetic functions. The numbers Inf and NaN can be
        used in arithmetic expressions.
     2. TAB-TAB completion generates a numbered list of
        completions which the user can select.
     3. Support for processing/handling multibyte locales (e.g.,
        en_US.UTF-8, hi_IN.UTF-8, ja_JP.eucJP, zh_CN.GB18030,
        zh_TW.BIG5 etc.) has been extensively revised, tested,
        and is now supported even on the language level (e.g.
        variable and function identifiers may contain locale
        specific codeset characters).
     4. /dev/(tcp|udp|sctp)/host/sevrice now handles IPv6
        addresses on systems that provide getaddrinfo(3).
     5. The ability to seek on a file by offset or content with
        new redirection operators.
     6. A new --showme option which allows portions of a script
        to behave as if -x were specified while other parts
        execute as usual. This simplifies the coding of make -n
        style semantics at the script level by eliminating code
        replication. In particular, io redirections are handled
        by --showme.
     7. The [[...]] operator =~ has been added which compares
        the string to an extended regular expression rather than
        == which compares against a shell pattern.
     8. The printf(1) builtin has been extended to support the =
        flag for centering a field. The # flag when used with
        %d and %i provides values in units of thousands or 1024
        respectively with an appropriate suffix added.
     9. Example screenshots from joint work with the Solaris
        ksh93 integration project are available here.
    See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2007-03-28.2007-01-11.html

2007-01-11

    This release, almost a year from the last big release,
    contains changes based on feedback from the { ast-users
    ast-developers uwin-users uwin-developers } lists and the
    ongoing ksh93-solaris integration project. Thanks to all
    who helped. Our resolution this year is to increase release
    frequency to keep internal and external source/binaries
    more in sync. See the release change log for details:

    http://www2.research.att.com/~gsf/download/release.2007-01-11.2006-02-14.html

2006-05-01

    Change log at

    http://www2.research.att.com/~gsf/download/release.2006-05-01.2006-02-14.html

    is empty.

# $NetBSD: Makefile.common,v 1.29 2012/05/25 17:08:46 asau Exp $

DISTNAME=	ast-ksh-${ASTKSH_VERSION}
PKGNAME=	ast-ksh-${ASTKSH_VERSION:S/-//g}
CATEGORIES=	shells
# originally at http://www2.research.att.com/~gsf/download/tgz/
# but it requires authentication
MASTER_SITES=	${MASTER_SITE_LOCAL}
DISTFILES=	INIT.${ASTKSH_VERSION}.tgz ast-ksh.${ASTKSH_VERSION}.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.kornshell.com/
COMMENT=	Official AT&T release of KornShell 93

NOT_FOR_PLATFORM=	Interix-*-* # taking nearly a day to build and crash!

CONFLICTS=	static-ast-ksh-[0-9]*
KSH93_MAKEFLAGS=

RESTRICTED=	Terms for redistribution are not yet clear.
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP=	${RESTRICTED}
NO_SRC_ON_CDROM=${RESTRICTED}
NO_SRC_ON_FTP=	${RESTRICTED}

ASTKSH_VERSION=	2012-02-29

WRKSRC=		${WRKDIR}
MAKE_FLAGS+=	CC=${CC:Q} CCFLAGS=${CFLAGS:M*:Q}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
PDKSH=		/bin/ksh
.endif

# Link with libm to fix sfcvt link error - 
# this is kind of a hack - 
# better would be to fix the 'meta makefile' to pass this
# or to use the ksh-provided math routines.

.if ${OPSYS} == "DragonFly"
KSH93_MAKEFLAGS+=	CCFLAGS=-lm
.endif

PKG_SHELL=	bin/ksh93

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

# ${KSH93_MAKEFLAGS} is set as "LDFLAGS=-static" only when built as a
# static binary.
#
# XXX Note that 'make' here is not an executable command name, but a target
# name which the ./bin/package script uses.
do-build:
	@cd ${WRKSRC:Q} && \
		${SETENV} SHELL=${PDKSH:Q} \
			${PDKSH:Q} ./bin/package make ${KSH93_MAKEFLAGS}

do-install:
	@set -e;							\
	arch=`${WRKSRC}/bin/package host`;				\
	${INSTALL_PROGRAM} ${WRKSRC}/arch/"$${arch}"/bin/ksh		\
		${DESTDIR}${PREFIX}/bin/ksh93;				\
	${INSTALL_MAN} ${WRKSRC}/arch/"$${arch}"/man/man1/sh.1	\
		${DESTDIR}${PREFIX}/man/man1/ksh93.1

# Part of regression test
do-test:
	@cd ${WRKSRC:Q}/src/cmd/ksh93/tests && \
		${SETENV} SHELL=${PREFIX:Q}/bin/ksh93 ${PREFIX:Q}/bin/ksh93 shtests
# XXX Their 'test' target needs nmake (Korn's another tool)
#	@cd ${WRKSRC}; \
#		${SETENV} SHELL=${PDKSH} ${PDKSH} ./bin/package test