pkgsrc-wip/netbsd-make/Makefile
Aleksej Saushev 117322ad16 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Mark packages that don't or might probably not have staged installation.
2012-10-03 18:15:31 +00:00

45 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2012/10/03 18:15:32 asau Exp $
#
DISTNAME= bmake-20111010
PKGNAME= ${DISTNAME:S/bmake/nbmake/}
CATEGORIES= devel
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/sjg/
MAINTAINER= cheusov@NetBSD.org
HOMEPAGE= http://www.crufty.net/help/sjg/bmake.html
COMMENT= Portable (autoconf) version of NetBSD 'make' utility
LICENSE= original-bsd
WRKSRC= ${WRKDIR}/bmake
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} ${WRKSRC}/bmake.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nbmake.1
.include "../../mk/bsd.pkg.mk"