summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-08-18 19:24:15 +0000
committerjlam <jlam>2005-08-18 19:24:15 +0000
commitb4a9b5bca13103c981a53613ee56284087d81f15 (patch)
treeceb43d674c1e7d200cc92c11034c68d095ccbb88 /mk
parent562b90ed1f91249d705f9c4381821a790eba8a6a (diff)
downloadpkgsrc-b4a9b5bca13103c981a53613ee56284087d81f15.tar.gz
INSTALLATION_DIRS implies NO_MTREE: If a package sets INSTALLATION_DIRS,
then it's known to pre-create all of the directories that it needs at install-time, so we don't need mtree to do it for us.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index e328f58b371..f61c6da3c32 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1716 2005/08/15 17:35:45 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1717 2005/08/18 19:24:15 jlam Exp $
#
# This file is in the public domain.
#
@@ -151,6 +151,14 @@ SVR4_PKGNAME?= ${PKGNAME}
USE_DIGEST?= YES
WRKSRC?= ${WRKDIR}/${DISTNAME}
+# If a package sets INSTALLATION_DIRS, then it's known to pre-create all
+# of the directories that it needs at install-time, so we don't need
+# mtree to do it for us.
+#
+.if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS)
+NO_MTREE= yes
+.endif
+
.if (defined(INSTALL_UNSTRIPPED) && !empty(INSTALL_UNSTRIPPED:M[yY][eE][sS])) || defined(DEBUG_FLAGS)
_INSTALL_UNSTRIPPED= # set (flag used by platform/*.mk)
.endif