# -*- 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
maintainers {raimue @raimue} \
BSD make is a build tool to create programs and libraries by rules \
specified in a Makefile. This port is based on the last version from Apple as \
homepage http://opensource.apple.com/
# see also http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/make/
master_sites http://opensource.apple.com/tarballs/${name}
checksums rmd160 ff6d946a8b742b20948f9a48c9cdaa95e9dee2bd \
sha256 82a948b80c2abfc61c4aa5c1da775986418a8e8eb3dd896288cfadf2e19c4985
patchfiles patch-Makefile.diff \
reinplace "s:@PREFIX@:${prefix}:g" \
${worksrcpath}/mk/bsd.README \
${worksrcpath}/mk/bsd.cpu.mk \
${worksrcpath}/mk/bsd.doc.mk \
${worksrcpath}/mk/bsd.obj.mk \
${worksrcpath}/mk/bsd.own.mk \
${worksrcpath}/mk/bsd.port.mk \
${worksrcpath}/mk/bsd.port.subdir.mk \
${worksrcpath}/mk/sys.mk \
${worksrcpath}/pathnames.h
reinplace "s:@INSTALL_USER@:${install.user}:g" ${worksrcpath}/mk/bsd.own.mk
reinplace "s:@INSTALL_GROUP@:${install.group}:g" ${worksrcpath}/mk/bsd.own.mk
# Using some pseudo MACHINE here, this ends up as ${MACHINE} in Makefiles
build.args -f Makefile.dist \
CFLAGS="-D__FBSDID=__RCSID -mdynamic-no-pic \
-DMACHINE=\\\\\\\"MacPorts\\\\\\\" \
-DMACHINE_ARCH=\\\\\\\"${configure.build_arch}\\\\\\\"" \
xinstall -m 755 ${worksrcpath}/pmake ${destroot}${prefix}/bin/bsdmake
xinstall -m 444 ${worksrcpath}/make.1 ${destroot}${prefix}/share/man/man1/bsdmake.1
xinstall -d ${destroot}${prefix}/share/mk/bsdmake
xinstall -m 644 {*}[glob ${worksrcpath}/mk/*] ${destroot}${prefix}/share/mk/bsdmake