summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-14 02:33:32 +0000
committerjlam <jlam@pkgsrc.org>2004-08-14 02:33:32 +0000
commit896e92919d92caabe78eedb30fa6c2c72448c4f0 (patch)
treef631e159d982bcf42bc94bc412d1f6686657271c /pkgtools
parentda372e20b8e77ccf42e88894471eb46e2104ea72 (diff)
downloadpkgsrc-896e92919d92caabe78eedb30fa6c2c72448c4f0.tar.gz
If LIBNBCOMPAT_STYLE is set to "inplace", then build and use a local
version of libnbcompat instead of requiring libnbcompat to be installed. This simplifies testing of bootstrap packages without root privileges on a system that has already been bootstrapped.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/mtree/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgtools/mtree/Makefile b/pkgtools/mtree/Makefile
index 5aab60c2d31..5d40db6a593 100644
--- a/pkgtools/mtree/Makefile
+++ b/pkgtools/mtree/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2004/04/11 02:01:55 snj Exp $
+# $NetBSD: Makefile,v 1.11 2004/08/14 02:33:32 jlam Exp $
#
DISTNAME= mtree-20031220
@@ -20,10 +20,17 @@ NO_PKG_REGISTER= # defined
NO_PACKAGE= Deinstallation is not permitted
PKG_PRESERVE= # defined
+.include "../../mk/bsd.prefs.mk"
+
do-extract:
@${CP} -Rp ${FILESDIR} ${WRKSRC}
-.include "../../pkgtools/libnbcompat/buildlink3.mk"
+.if defined(LIBNBCOMPAT_STYLE) && (${LIBNBCOMPAT_STYLE} == "inplace")
+. include "../../pkgtools/libnbcompat/inplace.mk"
+.else
+. include "../../pkgtools/libnbcompat/buildlink3.mk"
+.endif
+
.include "../../mk/bsd.pkg.mk"
PREFIX:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}