ef1892664b
Internal arrays are relocated automatically. This fixes use of runawk(1) in combination with xargs(1), e.g. cat files.txt | xargs runawk -e '...'
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2011/10/09 12:28:05 cheusov Exp $
|
|
#
|
|
|
|
DISTNAME= runawk-1.3.2
|
|
CATEGORIES= lang devel
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=runawk/} \
|
|
http://mova.org/~cheusov/pub/runawk/
|
|
|
|
MAINTAINER= cheusov@NetBSD.org
|
|
HOMEPAGE= http://sourceforge.net/projects/runawk
|
|
COMMENT= AWK wrapper that provides support for modules
|
|
|
|
BUILD_DEPENDS+= mk-configure>=0.21.0:../../devel/mk-configure
|
|
|
|
LICENSE= mit
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= c
|
|
TEST_TARGET= test
|
|
|
|
SUBST_CLASSES+= runawk
|
|
SUBST_SED.runawk= -e "s,/usr/bin/env runawk,${PREFIX}/bin/runawk,"
|
|
SUBST_FILES.runawk= a_getopt/alt_getopt
|
|
SUBST_STAGE.runawk= pre-build
|
|
SUBST_MESSAGE.runawk= Fixing path to runawk.
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
MAKE_ENV+= AWK_PROG=${AWK:Q}
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/runawk
|
|
|
|
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
|
|
MAKE_ENV+= EGDIR=${EGDIR}
|
|
MAKE_ENV+= SUBPRJ_DFLT='runawk modules a_getopt doc examples'
|
|
|
|
AUTO_MKDIRS= yes
|
|
|
|
MAKE_PROGRAM= mkcmake
|
|
|
|
.include "../../devel/mk-configure/configure.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|