summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2000-08-28 22:43:07 +0000
committerjlam <jlam>2000-08-28 22:43:07 +0000
commita1d7c3ed6dc8634d4c82e656b48b09e546e6968c (patch)
tree7373e5262965004ee82b7d545fcb804ff71a8c23 /mk
parentda3b59f064c1cc4b1102615f1a976f442029230a (diff)
downloadpkgsrc-a1d7c3ed6dc8634d4c82e656b48b09e546e6968c.tar.gz
Surround the PERL5_* in PLIST_SUBST with .if defined(USE_PERL5) ... .endif
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index ad9c09e7c4c..99d5418f38e 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.552 2000/08/28 08:23:03 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.553 2000/08/28 22:43:07 jlam Exp $
#
# This file is in the public domain.
#
@@ -454,10 +454,12 @@ PLIST_SUBST+= OPSYS=${OPSYS} \
MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM} \
LOWER_VENDOR=${LOWER_VENDOR} \
LOWER_OPSYS=${LOWER_OPSYS} \
- PKGNAME=${PKGNAME} \
- PERL5_SITELIB=${PERL5_SITELIB:S/^${LOCALBASE}\///} \
+ PKGNAME=${PKGNAME}
+.if defined(USE_PERL5)
+PLIST_SUBST+= PERL5_SITELIB=${PERL5_SITELIB:S/^${LOCALBASE}\///} \
PERL5_SITEARCH=${PERL5_SITEARCH:S/^${LOCALBASE}\///} \
PERL5_ARCHLIB=${PERL5_ARCHLIB:S/^${LOCALBASE}\///}
+.endif
# Set INSTALL_FILE to be the name of any INSTALL file
.if !defined(INSTALL_FILE) && exists(${PKGDIR}/INSTALL)