# -*- 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 20240728 checksums rmd160 cdbb716d5a9a4af9928093529f8929a8ef7983cc \ sha256 8a6686dc30696f35ccdd4cb9c9d6f9f8faf8a673a8be7302083ed9e028b1c55d \ size 1845633 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