# $Id$ PortSystem 1.0 name nawk version 20071023 categories lang maintainers nomaintainer description the one true awk long_description Kernighan's canonical implementation of awk. homepage http://www.cs.princeton.edu/~bwk/btl.mirror/ platforms darwin master_sites ${homepage} distname awk checksums md5 6678ed668b12c5f3051a6e88732c23d8 \ sha1 433317b8ed6d68bbfb18667384edfe64344b8074 \ rmd160 d06c8dddbd1086e853b45738c56a4f507cbcd402 dist_subdir ${name}/${version} extract.mkdir yes patchfiles patch-makefile patch-run.c configure { reinplace s|__CFLAGS__|${configure.cflags}| ${worksrcpath}/makefile reinplace s|__CC__|${configure.cc}| ${worksrcpath}/makefile } build.target destroot { xinstall ${worksrcpath}/a.out ${destroot}${prefix}/bin/nawk xinstall ${worksrcpath}/awk.1 ${destroot}${prefix}/share/man/man1/nawk.1 }