pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/depends Set default DEPENDS_TARGET based on USE_DES...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a83872458ffc
branches:  trunk
changeset: 572141:a83872458ffc
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Feb 20 12:49:48 2010 +0000

description:
Set default DEPENDS_TARGET based on USE_DESTDIR instead of _USE_DESTDIR,
or failed at the situation current package != destdir support and depends
package = destdir support with USE_DESTDIR=yes.

diffstat:

 mk/depends/bsd.depends.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 48552ce287cb -r a83872458ffc mk/depends/bsd.depends.mk
--- a/mk/depends/bsd.depends.mk Sat Feb 20 12:27:22 2010 +0000
+++ b/mk/depends/bsd.depends.mk Sat Feb 20 12:49:48 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.depends.mk,v 1.18 2008/04/04 21:28:51 joerg Exp $
+# $NetBSD: bsd.depends.mk,v 1.19 2010/02/20 12:49:48 obache Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk and provides all
 # variables and targets related to dependencies.
@@ -22,7 +22,7 @@
 # dependencies.  This variable is user-settable in /etc/mk.conf.
 #
 .if !defined(DEPENDS_TARGET)
-.  if ${_USE_DESTDIR} != "no"
+.  if defined(USE_DESTDIR) && !empty(USE_DESTDIR:M[Yy][Ee][Ss])
 DEPENDS_TARGET=                package-install
 .  elif make(package)
 DEPENDS_TARGET=                package



Home | Main Index | Thread Index | Old Index