diff options
author | jlam <jlam> | 2000-08-29 18:48:11 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-08-29 18:48:11 +0000 |
commit | 36205eb485b7b43e08e316477f95d5786ef2ed93 (patch) | |
tree | 9dac14619361da41e2ecb2aa51c109f7f4294ab3 /mk/bsd.pkg.mk | |
parent | 3d5f8371cddd198d23bd3e6434211173c066be93 (diff) | |
download | pkgsrc-36205eb485b7b43e08e316477f95d5786ef2ed93.tar.gz |
Fix errors with not finding perl in another way.
Also only compute PERL5_* variables once and pass into MAKEFLAGS, following
model of IS_LESSTIF (thanks to hubertf for the suggestion).
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 4da3299e78d..8327eef0528 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.554 2000/08/28 22:52:08 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.555 2000/08/29 18:48:11 jlam Exp $ # # This file is in the public domain. # @@ -136,9 +136,19 @@ BUILD_DEFS+= KERBEROS PERL5?= ${LOCALBASE}/bin/perl .if defined(USE_PERL5) DEPENDS+= perl-5.*:../../lang/perl5 -PERL5_SITELIB!= eval `${PERL5} -V:installsitelib 2>/dev/null`; echo $${installsitelib} -PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch 2>/dev/null`; echo $${installsitearch} -PERL5_ARCHLIB!= eval `${PERL5} -V:installarchlib 2>/dev/null`; echo $${installarchlib} +.if exists(${PERL5}) +.if !defined(PERL5_SITELIB) || !defined(PERL5_SITEARCH) || !defined(PERL5_ARCHLIB) +PERL5_SITELIB!= eval `${PERL5} -V:installsitelib`; \ + echo $${installsitelib} +PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch`; \ + echo $${installsitearch} +PERL5_ARCHLIB!= eval `${PERL5} -V:installarchlib`; \ + echo $${installarchlib} +MAKEFLAGS+= PERL5_SITELIB=${PERL5_SITELIB} +MAKEFLAGS+= PERL5_SITEARCH=${PERL5_SITEARCH} +MAKEFLAGS+= PERL5_ARCHLIB=${PERL5_ARCHLIB} +.endif +.endif .endif .if defined(USE_FORTRAN) @@ -455,10 +465,14 @@ PLIST_SUBST+= OPSYS=${OPSYS} \ LOWER_VENDOR=${LOWER_VENDOR} \ LOWER_OPSYS=${LOWER_OPSYS} \ 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}\///} +.if defined(PERL5_SITELIB) +PLIST_SUBST+= PERL5_SITELIB=${PERL5_SITELIB:S/^${LOCALBASE}\///} +.endif +.if defined(PERL5_SITEARCH) +PLIST_SUBST+= PERL5_SITEARCH=${PERL5_SITEARCH:S/^${LOCALBASE}\///} +.endif +.if defined(PERL5_ARCHLIB) +PLIST_SUBST+= PERL5_ARCHLIB=${PERL5_ARCHLIB:S/^${LOCALBASE}\///} .endif # Set INSTALL_FILE to be the name of any INSTALL file |