summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.use.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-12 21:03:46 +0000
committerjlam <jlam>2005-05-12 21:03:46 +0000
commit6df3d7d7833caa25fc77542f6f8704988d362c19 (patch)
treeeccf9a37753a15dba47ca55610b63283bf55b6dd /mk/bsd.pkg.use.mk
parent7dc1208e9c6c1f1d74bcc1d1c94da654a090e822 (diff)
downloadpkgsrc-6df3d7d7833caa25fc77542f6f8704988d362c19.tar.gz
Teach the new tools framework more about perl. We include perl5/vars.mk
in mk/tools/perl.mk since many packages expect to be able to use the variables defined in vars.mk, but those variables can only be defined if PERL5 is correctly defined, and that is only true after it is set here.
Diffstat (limited to 'mk/bsd.pkg.use.mk')
-rw-r--r--mk/bsd.pkg.use.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk
index d3a8f8f1d1b..b827a7295d5 100644
--- a/mk/bsd.pkg.use.mk
+++ b/mk/bsd.pkg.use.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.use.mk,v 1.9 2005/05/12 20:31:56 jlam Exp $
+# $NetBSD: bsd.pkg.use.mk,v 1.10 2005/05/12 21:03:46 jlam Exp $
#
# Turn USE_* macros into proper depedency logic. Included near the top of
# bsd.pkg.mk, after bsd.prefs.mk.
@@ -155,10 +155,12 @@ ${_PERL5_DEPMETHOD}+= ${_PERL5_DEPENDS}:${PERL5_PKGSRCDIR}
. endif
.endif
+.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
.if defined(USE_PERL5) && (${USE_PERL5} == "run")
CONFIGURE_ENV+= PERL=${PERL5:Q}
. include "../../lang/perl5/vars.mk"
.endif # USE_PERL5 == run
+.endif
.if defined(USE_PERL5)
PLIST_SUBST+= PERL5_SITELIB=${PERL5_SUB_INSTALLSITELIB}