pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk INSTALLATION_DIRS implies NO_MTREE: If a package s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/69a357828580
branches:  trunk
changeset: 498274:69a357828580
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Aug 18 19:24:15 2005 +0000

description:
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:

 mk/bsd.pkg.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 989d301302ad -r 69a357828580 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Thu Aug 18 19:21:06 2005 +0000
+++ b/mk/bsd.pkg.mk     Thu Aug 18 19:24:15 2005 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index