# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup github 1.0 github.setup onetrueawk awk 20240422 checksums rmd160 a8dbedb74889f346e6999dbffa3595e27c3c80ca \ sha256 205375f92c3e1c03e334a3ba008b5c99a6d1ba19fb778066ec81de9a211be310 \ size 1845190 name nawk categories lang platforms darwin license BSD maintainers {toby @tobypeterson} openmaintainer description the one true awk long_description Kernighan's canonical implementation of awk. depends_build port:bison patchfiles patch-makefile configure { reinplace "s|__CFLAGS__|${configure.cflags} [get_canonical_archflags]|" ${worksrcpath}/makefile reinplace s|__CC__|${configure.cc}| ${worksrcpath}/makefile reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/makefile } use_parallel_build no build.target destroot { xinstall ${worksrcpath}/a.out ${destroot}${prefix}/bin/nawk xinstall ${worksrcpath}/awk.1 ${destroot}${prefix}/share/man/man1/nawk.1 } test.run yes