aboutsummaryrefslogtreecommitdiffstats
path: root/lang/nawk/Makefile
blob: b14a833fb3ef07143bf1bb9c679dba49f551d6a7 (plain) (blame)
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
# Created by: Josh Gilliam <josh@quick.net>
# $FreeBSD$

PORTNAME=   nawk
PORTVERSION=    20121220
CATEGORIES= lang
MASTER_SITES=   http://www.cs.princeton.edu/~bwk/btl.mirror/
DISTNAME=   awk
DIST_SUBDIR=    nawk-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Brian Kernighan's pattern scanning and processing language

NO_WRKSUBDIR=   yes
MAKEFILE=   makefile
ALL_TARGET= a.out
CFLAGS+=    -DHAS_ISBLANK
PLIST_FILES=    bin/nawk man/man1/nawk.1.gz

post-patch:
    @${REINPLACE_CMD} -e 's|awk|nawk|g' ${WRKSRC}/awk.1

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/a.out ${STAGEDIR}${PREFIX}/bin/nawk
    ${INSTALL_MAN} ${WRKSRC}/awk.1 \
        ${STAGEDIR}${MANPREFIX}/man/man1/nawk.1.gz

.include <bsd.port.mk>