mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
2113648f95
Changelog: 2012-08-31 Simon J. Gerraty <sjg@bad.crufty.net> * Makefile.in (MAKE_VERSION): bump version to 20120831 Merge with NetBSD make, pick up o cast sizeof() to int for comparison o minor make.1 tweak 2012-08-30 Simon J. Gerraty <sjg@bad.crufty.net> * Makefile.in (MAKE_VERSION): bump version to 20120830 Merge with NetBSD make, pick up o .MAKE.EXPAND_VARIABLES knob can control default behavior of -V o debug flag -dV causes -V to show raw value regardless. 2012-07-05 Simon J. Gerraty <sjg@bad.crufty.net> * bsd.after-import.mk (after-import): ensure unit-tests/Makefile gets SRCTOP set. PR: ports/171244 Submitted by: trociny (maintainer) Approved by: eadler (mentor)
55 lines
1.7 KiB
Makefile
55 lines
1.7 KiB
Makefile
# New ports collection makefile for: bmake
|
|
# Date created: 13 September 2009
|
|
# Whom: Mikolaj Golub <to.my.trociny@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bmake
|
|
PORTVERSION= 20120831
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg/ \
|
|
http://www.gtlib.cc.gatech.edu/pub/NetBSD/misc/sjg/ \
|
|
ftp://ftp.uk.netbsd.org/pub/NetBSD/misc/sjg/ \
|
|
ftp://ftp.de.netbsd.org/pub/NetBSD/misc/sjg/
|
|
DISTFILES= bmake-${PORTVERSION}.tar.gz mk-20120808.tar.gz
|
|
|
|
MAINTAINER= trociny@FreeBSD.org
|
|
COMMENT= Portable version of NetBSD 'make' utility
|
|
|
|
LICENSE= BSD
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAN1= bmake.1
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} 's/^\.Nx/NetBSD/' ${WRKDIR}/bmake/bmake.1
|
|
|
|
do-build:
|
|
${SETENV} ${MAKE_ENV} ${SH} ${WRKDIR}/bmake/boot-strap \
|
|
--with-default-sys-path='.../share/mk:${PREFIX}/share/mk' \
|
|
-m ${WRKDIR}/mk objdir=${WRKDIR}/obj prefix=${PREFIX}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/obj/bmake ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKDIR}/bmake/bmake.1 ${MAN1PREFIX}/man/man1
|
|
${SH} ${WRKDIR}/mk/install-mk ${PREFIX}/share/mk
|
|
cd ${PREFIX} ; \
|
|
${FIND} share/mk -type f -o -type l \
|
|
| ${SORT} \
|
|
>${WRKDIR}/PLIST.share-mk
|
|
cd ${PREFIX} ; \
|
|
${FIND} share/mk/${_DATADIR} -type d \
|
|
| ${SORT} -r | ${SED} -e 's/^/@dirrm /g' \
|
|
>>${WRKDIR}/PLIST.share-mk
|
|
${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
|
|
${ECHO_CMD} "/Insert PLIST.share-mk" >> ${WRKDIR}/ex.script
|
|
${ECHO_CMD} "d" >> ${WRKDIR}/ex.script
|
|
${ECHO_CMD} "r ${WRKDIR}/PLIST.share-mk" >> ${WRKDIR}/ex.script
|
|
${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
|
|
${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-share-mk
|
|
cd ${WRKDIR} ; ex < ex.script
|
|
|
|
.include <bsd.port.mk>
|