2013-02-16 19:14:47 +01:00
|
|
|
# Created by: Mikolaj Golub <to.my.trociny@gmail.com>
|
2009-10-04 12:09:41 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bmake
|
2014-08-19 22:52:04 +02:00
|
|
|
PORTVERSION= 20140620
|
2009-10-04 12:09:41 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/sjg/ \
|
2010-04-03 02:06:06 +02:00
|
|
|
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/
|
2014-06-13 22:32:15 +02:00
|
|
|
DISTFILES= bmake-${PORTVERSION}.tar.gz mk-20140314.tar.gz
|
2009-10-04 12:09:41 +02:00
|
|
|
|
2011-11-30 19:15:11 +01:00
|
|
|
MAINTAINER= trociny@FreeBSD.org
|
2009-10-04 12:09:41 +02:00
|
|
|
COMMENT= Portable version of NetBSD 'make' utility
|
|
|
|
|
2012-05-28 09:41:59 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2013-12-22 18:40:01 +01:00
|
|
|
PORTSCOUT= skipv:200910007
|
|
|
|
|
2010-10-23 16:54:17 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2010-08-19 14:57:04 +02:00
|
|
|
post-patch: .SILENT
|
|
|
|
${REINPLACE_CMD} 's/^\.Nx/NetBSD/' ${WRKDIR}/bmake/bmake.1
|
|
|
|
|
2009-10-04 12:09:41 +02:00
|
|
|
do-build:
|
2010-08-19 14:57:04 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${SH} ${WRKDIR}/bmake/boot-strap \
|
2012-05-31 01:37:56 +02:00
|
|
|
--with-default-sys-path='.../share/mk:${PREFIX}/share/mk' \
|
2010-08-19 14:57:04 +02:00
|
|
|
-m ${WRKDIR}/mk objdir=${WRKDIR}/obj prefix=${PREFIX}
|
2009-10-04 12:09:41 +02:00
|
|
|
|
|
|
|
do-install:
|
2013-10-10 15:14:02 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/obj/bmake ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/bmake/bmake.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
${SH} ${WRKDIR}/mk/install-mk ${STAGEDIR}${PREFIX}/share/mk
|
2014-01-09 21:31:25 +01:00
|
|
|
cd ${STAGEDIR}${PREFIX} ; \
|
|
|
|
${FIND} share/mk -type f -o -type l \
|
|
|
|
| ${SORT} \
|
2011-05-05 02:40:30 +02:00
|
|
|
>${WRKDIR}/PLIST.share-mk
|
2014-01-09 21:31:25 +01:00
|
|
|
cd ${STAGEDIR}${PREFIX} ; \
|
|
|
|
${FIND} share/mk -type d \
|
2014-01-10 23:21:24 +01:00
|
|
|
| ${SORT} -r \
|
|
|
|
| ${SED} -e 's/^/@dirrmtry /; ${PLIST_REINPLACE_DIRRMTRY}' \
|
2011-05-05 02:40:30 +02:00
|
|
|
>>${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
|
2009-10-04 12:09:41 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|