summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-12-15 20:54:47 +0000
committerjoerg <joerg@pkgsrc.org>2006-12-15 20:54:47 +0000
commit72e97d6f608096599e9b9285c99043aabffb5c0d (patch)
tree65e3fa49e46ce895e35882f23c7cf444791f1cdb /mk/install
parent1662e47171e6ce8e00049ee83a61d82af0c8ed96 (diff)
downloadpkgsrc-72e97d6f608096599e9b9285c99043aabffb5c0d.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')
-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.