summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2005-06-02 09:31:25 +0000
committertron <tron@pkgsrc.org>2005-06-02 09:31:25 +0000
commit286d96e77fcd7cc1b84d350183bf2bc7eed6eaac (patch)
tree2376ef9293710fa68f0a344211349539f678733f /mk
parent1dea294ba2b7304669410ccc83382e7159bd7803 (diff)
downloadpkgsrc-286d96e77fcd7cc1b84d350183bf2bc7eed6eaac.tar.gz
Test whether "_TOOLS_USE_PKGSRC.perl" is defined before checking its value.
This makes "make fetch-list" in "pkgsrc/meta-pkgs/kde3" work again.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/replace.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 30874785548..56b3c6c0bab 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.95 2005/05/26 21:46:14 jlam Exp $
+# $NetBSD: replace.mk,v 1.96 2005/06/02 09:31:25 tron Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -812,7 +812,8 @@ TOOLS_${_TOOLS_VARNAME.pax}= ${TOOLS_REAL_CMD.pax}
.if !defined(TOOLS_IGNORE.perl) && !empty(USE_TOOLS:Mperl)
. if !empty(PKGPATH:Mlang/perl58)
MAKEFLAGS+= TOOLS_IGNORE.perl=
-. elif !empty(_TOOLS_USE_PKGSRC.perl:M[yY][eE][sS])
+. elif defined(_TOOLS_USE_PKGSRC.perl) && \
+ !empty(_TOOLS_USE_PKGSRC.perl:M[yY][eE][sS])
. include "../../lang/perl5/version.mk"
TOOLS_DEPENDS.perl?= {perl>=${PERL5_REQD},perl-thread>=${PERL5_REQD}}:../../lang/perl58
TOOLS_CREATE+= perl