pkgsrc-wip/netbsd-make/Makefile
Aleksey Cheusov 12dde6b42d Updated to bmake-20091118
* Merge with NetBSD make, pick up:
	  o .unexport
	  o report lines that start with '.' and should have ':'
	    (catch typo's of .el*if).

	* configure.in: Ensure that srcdir and mksrc are absolute paths.

	* Merge with NetBSD make, pick up:
	  o fix for parsing of :S;...;...; applied to .for loop iterator
	    appearing in a dependency line.
2009-11-20 14:47:57 +00:00

48 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2009/11/20 14:47:57 cheusov Exp $
#
DISTNAME= bmake-20091118
PKGNAME= ${DISTNAME:S/bmake/nbmake/}
CATEGORIES= devel
MASTER_SITES= http://www.crufty.net/ftp/pub/sjg/
MAINTAINER= cheusov@tut.by
HOMEPAGE= http://www.crufty.net/help/sjg/bmake.html
COMMENT= Portable (autoconf) version of NetBSD 'make' utility
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/bmake
USE_FEATURES= nbcompat
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
BOOTSTRAP_ARGS= -q -o ${OPSYS} --prefix=${PREFIX} \
--with-default-sys-path=${makesyspath} \
--mksrc none --sysconfdir=${PKG_SYSCONFDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" && exists(/usr/xpg4/bin/sh)
BOOTSTRAP_ARGS+= --with-defshell=/usr/xpg4/bin/sh
.endif
.if ${OPSYS} == "NetBSD"
makesyspath= /usr/share/mk
.else
makesyspath= ${PREFIX}/share/mk
DEPENDS+= bootstrap-mk-files-[0-9]*:../../pkgtools/bootstrap-mk-files
.endif
do-configure:
do-build:
cd ${WRKDIR} && \
env ${MAKE_ENV} ${SH} ./bmake/boot-strap ${BOOTSTRAP_ARGS}
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/${OPSYS}/bmake ${DESTDIR}${PREFIX}/bin/nbmake
${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nbmake.1
.include "../../mk/bsd.pkg.mk"