summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-02-26 07:27:27 +0000
committerjlam <jlam@pkgsrc.org>2001-02-26 07:27:27 +0000
commit56f387f1612ee30d7aedc3f47b5dde0a242fe765 (patch)
tree4bdfd2dc912ff650b8e5e48be784af6b44ce3882 /pkgtools
parentcc35ebc3a53a305d1b22ca09402182dd5867086f (diff)
downloadpkgsrc-56f387f1612ee30d7aedc3f47b5dde0a242fe765.tar.gz
Surround PERL5_* variable definitions in check for definition. This cuts
the number of times perl is invoked substantially as pkgsrc uses a recursive make scheme.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/perl-mk/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/perl-mk/Makefile b/pkgtools/perl-mk/Makefile
index fc827dd2adf..8a0ff68da48 100644
--- a/pkgtools/perl-mk/Makefile
+++ b/pkgtools/perl-mk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/02/20 16:23:55 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2001/02/26 07:27:27 jlam Exp $
#
DISTNAME= perl-mk-1.0
@@ -30,9 +30,15 @@ do-install:
.include "../../mk/bsd.pkg.mk"
# needs PERL5 defined from bsd.pkg.mk
+.if !defined(PERL5_SITELIB)
PERL5_SITELIB!= eval `${PERL5} -V:installsitelib 2>/dev/null`; \
${ECHO} $${installsitelib}
+.endif
+.if !defined(PERL5_SITEARCH)
PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch 2>/dev/null`; \
${ECHO} $${installsitearch}
+.endif
+.if !defined(PERL5_ARCHLIB)
PERL5_ARCHLIB!= eval `${PERL5} -V:installarchlib 2>/dev/null`; \
${ECHO} $${installarchlib}
+.endif