summaryrefslogtreecommitdiff
path: root/mk/install/bsd.install-vars.mk
diff options
context:
space:
mode:
authorjoerg <joerg>2006-12-15 20:54:47 +0000
committerjoerg <joerg>2006-12-15 20:54:47 +0000
commit79de51441b732fe47d4ab8d64cdd9c05f23d5daf (patch)
tree65e3fa49e46ce895e35882f23c7cf444791f1cdb /mk/install/bsd.install-vars.mk
parentec9ffdbeb00f364d0cb8df9404f2348b6882065c (diff)
downloadpkgsrc-79de51441b732fe47d4ab8d64cdd9c05f23d5daf.tar.gz
Set NO_MTREE for packages flagged as allowing DESTDIR. They are supposed
to work without precreated directories anyway.
Diffstat (limited to 'mk/install/bsd.install-vars.mk')
-rw-r--r--mk/install/bsd.install-vars.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/install/bsd.install-vars.mk b/mk/install/bsd.install-vars.mk
index 9131382ec78..332933ece6a 100644
--- a/mk/install/bsd.install-vars.mk
+++ b/mk/install/bsd.install-vars.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.install-vars.mk,v 1.4 2006/11/04 07:42:51 rillig Exp $
+# $NetBSD: bsd.install-vars.mk,v 1.5 2006/12/15 20:54:47 joerg Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -12,6 +12,13 @@
# the "real" installation should start.
#
+# If a package sets PKG_DESTDIR_SUPPORT to a non-empty value,
+# it is supposed to deal with missing directories already.
+#
+.if !empty(PKG_DESTDIR_SUPPORT)
+NO_MTREE= yes
+.endif
+
# 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.