diff options
author | jlam <jlam@pkgsrc.org> | 2005-05-22 02:30:53 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-05-22 02:30:53 +0000 |
commit | 63e891437cc0b4b156bf080eff229bbaaa791851 (patch) | |
tree | c851dcf2cdd49eb815b26eb9c847946e4264513e /mk | |
parent | ce40410af8a6eb7178842c22dbef5c91fb2e2578 (diff) | |
download | pkgsrc-63e891437cc0b4b156bf080eff229bbaaa791851.tar.gz |
Some packages want to embed the path to the perl tool in scripts but
don't want to depend on perl, e.g. devel/cvs. Provide values for
TOOLS_PERL5 and PERL5 even if the package doesn't ask for the perl
tool.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/perl.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/tools/perl.mk b/mk/tools/perl.mk index b52a275f97b..0ca5bbe668a 100644 --- a/mk/tools/perl.mk +++ b/mk/tools/perl.mk @@ -1,4 +1,4 @@ -# $NetBSD: perl.mk,v 1.17 2005/05/22 02:05:24 jlam Exp $ +# $NetBSD: perl.mk,v 1.18 2005/05/22 02:30:53 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -54,4 +54,16 @@ PLIST_SUBST+= PERL5_SITELIB=${PERL5_SUB_INSTALLSITELIB} PLIST_SUBST+= PERL5_SITEARCH=${PERL5_SUB_INSTALLSITEARCH} PLIST_SUBST+= PERL5_ARCHLIB=${PERL5_SUB_INSTALLARCHLIB} + +.else +# +# Some packages want the path to the perl tool, even if they don't have +# dependency on perl, e.g. devel/cvs. +# +. if defined(TOOLS_PLATFORM.perl) && !empty(TOOLS_PLATFORM.perl) +TOOLS_${_TOOLS_VARNAME.perl}?= ${TOOLS_PLATFORM.perl} +. else +TOOLS_${_TOOLS_VARNAME.perl}?= ${LOCALBASE}/bin/perl +. endif +${_TOOLS_VARNAME.perl}?= ${TOOLS_${_TOOLS_VARNAME.perl}} .endif |