pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/tools Some packages want to embed the path to the p...
details: https://anonhg.NetBSD.org/pkgsrc/rev/59a744c75a84
branches: trunk
changeset: 494261:59a744c75a84
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun May 22 02:30:53 2005 +0000
description:
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:
mk/tools/perl.mk | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 88f3afbf1e54 -r 59a744c75a84 mk/tools/perl.mk
--- a/mk/tools/perl.mk Sun May 22 02:05:24 2005 +0000
+++ b/mk/tools/perl.mk Sun May 22 02:30:53 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index