summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-08-18 19:24:15 +0000
committerjlam <jlam@pkgsrc.org>2005-08-18 19:24:15 +0000
commitf1e3e67038fc170f4328e977a1e6f862763ff2d3 (patch)
treeceb43d674c1e7d200cc92c11034c68d095ccbb88 /mk/bsd.pkg.mk
parent74d26e529b594c30b9f28ced35e2133023180c69 (diff)
downloadpkgsrc-f1e3e67038fc170f4328e977a1e6f862763ff2d3.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/bsd.pkg.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