freebsd-ports/lang/nawk/Makefile
Stefan Walter 76464cb48c Add patches:
- replace sprintf with snprintf
- use calloc() to avoid malloc(n * m) overflows
- NetBSD PR 36831: In setfval(), ensure that arithmetic never yields a negative
  zero result.
- Restore the traditional (FreeBSD <= 2.x) behavior of trapping FPEs. With this
  patch we pass mawk's fpe_test.

PR:		125348
Submitted by:	"Pedro F. Giffuni" <pfgshield-freebsd@yahoo.com>
2008-10-20 14:52:28 +00:00

32 lines
730 B
Makefile

# ex:ts=8
# Ports collection makefile for: nawk
# Date created: 29 April 1998
# Whom: Josh Gilliam <josh@quick.net>
#
# $FreeBSD$
#
PORTNAME= nawk
PORTVERSION= 20071023
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://www.cs.princeton.edu/~bwk/btl.mirror/
DISTNAME= awk
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Brian Kernighan's pattern scanning and processing language
NO_WRKSUBDIR= yes
MAKEFILE= makefile
ALL_TARGET= a.out
MAN1= nawk.1
CFLAGS+= -DHAS_ISBLANK
PLIST_FILES= bin/nawk
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/a.out ${PREFIX}/bin/nawk
${SED} -e 's|awk|nawk|g' ${WRKSRC}/awk.1 > ${WRKSRC}/nawk.1
${INSTALL_MAN} ${WRKSRC}/nawk.1 ${PREFIX}/man/man1
.include <bsd.port.mk>