[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / shells / mksh

File: [cvs.NetBSD.org] / pkgsrc / shells / mksh / Makefile (download)

Revision 1.23, Tue Apr 30 17:58:44 2013 UTC (15 months, 3 weeks ago) by bsiegert
Branch: MAIN
Changes since 1.22: +2 -2 lines

Update to mksh-45.

* [tg] Make ◊‘et -x„ŗprint the commands run in escaped form
* [tg] PS4 in dot.mkshrc is now timestamped
* [tg] The &> GNU bash I/O redir is no longer parsed in -o posix, -o sh modes,
  lksh (breaks valid scripts)
* [tg] Implement ${ „ŗ} more efficiently (deleted-open files)
* [tg] For shf, %#s (if you can get it past GCC—‘ printf format attribute)
  calls print_value_quoted, ignoring field width and precision
* [tg] Catch „ŗ◊’ypeset =„ŗ(regression) with better error message
* [tg, Tonnerre Lombard] add „ŗ◊Ňoch„ŗalias to dot.mkshrc which just repeats the
  last input line with sudo(8)
* [tg] Use unsigned integers for all calculations, to avoid ISO C „ŗ◊∂ndefined
  Behaviour„ŗ(and implementation-defined behaviour) throughout (most of) the
  code; emulate signed integer arithmetics using unsigned; not-lksh only
* [tg] Emulate signed modulo na√Įvely, for correct sign of the result
* [tg] Add <<< and >>> for ROL and ROR (rotate left and right, respectively)
  operations, <<<= and >>> assignments; bitwise AND the RHS of a shift/rotate
  op with 31 (not for lksh)
* [tg] Remove a warning by working around a workaround found in dietlibc which
  works around a bug in broken software such as GNU tar (really!)
* [tg] Correct and simplify list and categorisation of built-in commands as
  POSIX special and ◊∆verything else„ŗplus a flag to keep assignments
* [tg] Handle ((foo)) as „ŗ◊Õet]„ŗinternally to avoid a conflict with
  user-defined functions called let (LP#1156707)
* [tg] Clean up the code

# $NetBSD: Makefile,v 1.23 2013/04/30 17:58:44 bsiegert Exp $

DISTNAME=			mksh-R45
PKGNAME=			${DISTNAME:S/-R/-/}
CATEGORIES=			shells
MASTER_SITES=			http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
				http://pub.allbsd.org/MirOS/dist/mir/mksh/
SITES.${DISTNAME}.cat1.gz=	${MASTER_SITES:S/dist/cats/}

EXTRACT_SUFX=			.tgz

MAINTAINER=			ahoka@NetBSD.org
HOMEPAGE=			http://mirbsd.de/mksh
COMMENT=			MirBSD Korn Shell
LICENSE=			miros

WRKSRC=				${WRKDIR}/mksh
WRKBUILD?=			${WRKSRC}

PKG_INSTALLATION_TYPES=		pkgviews overwrite

PKG_SHELL=			bin/mksh

LIBS.Interix+=			-lcrypt

INSTALLATION_DIRS=		bin ${PKGMANDIR}/man1 share/examples/mksh

do-build:
	cd ${WRKBUILD} && LIBS=${LIBS:Q} CC=${CC:Q} CFLAGS=${CFLAGS:Q} \
	    CPPFLAGS=${CPPFLAGS:Q} LDFLAGS=${LDFLAGS:Q} \
	    ${TOOLS_SHELL} ${WRKSRC}/Build.sh -r

do-install:
	${INSTALL_PROGRAM} ${WRKBUILD}/mksh ${DESTDIR}${PREFIX}/bin/mksh
	${INSTALL_MAN} ${WRKSRC}/mksh.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
	${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${DESTDIR}${PREFIX}/share/examples/mksh/

# Uncomment this if you want to run the regression tests
#USE_TOOLS+=			perl
#do-test:
#	${WRKBUILD}/test.sh -v

.include "../../mk/bsd.pkg.mk"