# $Id: Portfile,v 1.4 2005/08/19 18:31:55 toby Exp $

PortSystem 1.0
name             nawk
version          20050424
categories       lang
maintainers      toby@opendarwin.org
description      the one true awk
long_description Kernighan's canonical implementation of awk.
homepage         http://cm.bell-labs.com/cm/cs/awkbook/
platforms        darwin

master_sites     http://cm.bell-labs.com/cm/cs/who/bwk/
distname         awk
checksums        md5 6a8c9efb19d8f1d641148429202ac1de
dist_subdir      ${name}/${version}

patchfiles       patch-run.c

pre-extract {
	file mkdir ${worksrcpath}
}

extract.dir      ${worksrcpath}

configure        {}

build.target
build.args       CFLAGS="-DHAS_ISBLANK"

destroot {
	xinstall ${worksrcpath}/a.out ${destroot}${prefix}/bin/awk
	xinstall ${worksrcpath}/awk.1 ${destroot}${prefix}/share/man/man1
}
