summaryrefslogtreecommitdiff
path: root/mk/tools/perl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/tools/perl.mk')
-rw-r--r--mk/tools/perl.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/mk/tools/perl.mk b/mk/tools/perl.mk
index 3bfd729c1cd..8b703034bfe 100644
--- a/mk/tools/perl.mk
+++ b/mk/tools/perl.mk
@@ -1,4 +1,4 @@
-# $NetBSD: perl.mk,v 1.7 2005/05/11 19:42:17 jlam Exp $
+# $NetBSD: perl.mk,v 1.8 2005/05/12 21:03:46 jlam Exp $
# Create a symlink from ${TOOLS_DIR}/bin/perl to ${PERL5} when USE_PERL5
# is defined. This ensures that when "perl" is invoked, the pkgsrc perl
@@ -12,13 +12,22 @@ MAKEFLAGS+= TOOLS_IGNORE.perl=
TOOLS_DEPMETHOD.perl?= BUILD_DEPENDS
TOOLS_DEPENDS.perl?= ${BUILDLINK_DEPENDS.perl}:${BUILDLINK_PKGSRCDIR.perl}
TOOLS_CREATE+= perl
-EVAL_PREFIX+= TOOLS_PREFIX.perl=perl
+FIND_PREFIX:= TOOLS_PREFIX.perl=perl
+. include "../../mk/find-prefix.mk"
TOOLS_REAL_CMD.perl= ${TOOLS_PREFIX.perl}/bin/perl
PERL5= ${TOOLS_REAL_CMD.perl}
+CONFIGURE_ENV+= PERL=${PERL5:Q}
. endif
. if defined(TOOLS_DEPMETHOD.perl) && defined(TOOLS_DEPENDS.perl)
. if empty(${TOOLS_DEPMETHOD.perl}:M${TOOLS_DEPENDS.perl})
${TOOLS_DEPMETHOD.perl}+= ${TOOLS_DEPENDS.perl}
. endif
. endif
+
+# Define PERL5_* variables that locate the site directories for ${PERL5}.
+# These variables depend on PERL5 being properly defined and existing
+# on the filesystem.
+#
+. include "../../lang/perl5/vars.mk"
+
.endif