blob: bb70e935f7e92d7e804e378f983d9cbb92703dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $NetBSD: Makefile,v 1.20 2004/03/11 20:08:16 reed Exp $
#
DISTNAME= awk
PKGNAME= nawk-20040207
CATEGORIES= lang
MASTER_SITES= http://cm.bell-labs.com/who/bwk/
MAINTAINER= cjep@NetBSD.org
HOMEPAGE= http://cm.bell-labs.com/who/bwk/
COMMENT= Brian Kernighan's pattern-directed scanning and processing language
DIST_SUBDIR= ${PKGNAME}
WRKSRC= ${WRKDIR}
USE_GNU_TOOLS+= yacc
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
MAKEFILE= makefile
MAKE_FLAGS+= CC=${CC:Q} YACC=${YACC:Q} CFLAGS=${CFLAGS:Q}
ALL_TARGET= a.out
INSTALLATION_DIRS= bin man/man1
post-build:
${SED} -e 's|awk|nawk|g' -e 's/Awk/Nawk/g' \
${WRKSRC}/awk.1 > ${WRKSRC}/nawk.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/a.out ${PREFIX}/bin/nawk
${INSTALL_MAN} ${WRKSRC}/nawk.1 ${PREFIX}/man/man1/nawk.1
.include "../../mk/bsd.pkg.mk"
|