summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam>2003-09-13 08:22:07 +0000
committerjlam <jlam>2003-09-13 08:22:07 +0000
commitecaca3ebce7e1535e80cacc16847cd6fd02939cf (patch)
tree53b1da443a4fd2ca3a0a5cd622effaae60928281 /lang
parent8a7a3f6de7cb055b0312cb0417c21beba42f475d (diff)
downloadpkgsrc-ecaca3ebce7e1535e80cacc16847cd6fd02939cf.tar.gz
Catch up with changes in how PERL5_ARCHLIB is computed in bsd.pkg.mk.
bsd.pkg.mk automatically converts PERL5_ARCHLIB to be prefixed by ${LOCALBASE} if this is an overwrite package, so simply strip that away to get the relative directory.
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/buildlink2.mk13
1 files changed, 3 insertions, 10 deletions
diff --git a/lang/perl5/buildlink2.mk b/lang/perl5/buildlink2.mk
index 16c38abd3ec..c724be3642e 100644
--- a/lang/perl5/buildlink2.mk
+++ b/lang/perl5/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.5 2003/09/12 23:10:03 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.6 2003/09/13 08:22:07 jlam Exp $
.if !defined(PERL5_BUILDLINK2_MK)
PERL5_BUILDLINK2_MK= # defined
@@ -20,16 +20,9 @@ EVAL_PREFIX+= BUILDLINK_PREFIX.perl=perl
BUILDLINK_PREFIX.perl_DEFAULT= ${LOCALBASE}
PERL5?= ${BUILDLINK_PREFIX.perl}/bin/perl
-.if !defined(_PERL5_PREFIX)
-. if exists(${PERL5})
-_PERL5_PREFIX!= eval `${PERL5} -V:prefix 2>/dev/null`; ${ECHO} $${prefix}
-MAKE_FLAGS+= _PERL5_PREFIX="${_PERL5_PREFIX}"
-. endif
-.endif
-
BUILDLINK_FILES.perl= \
- ${PERL5_ARCHLIB:S/^${_PERL5_PREFIX}\///}/CORE/* \
- ${PERL5_ARCHLIB:S/^${_PERL5_PREFIX}\///}/auto/DynaLoader/DynaLoader.a
+ ${PERL5_ARCHLIB:S/^${BUILDLINK_PREFIX.perl}\///}/CORE/* \
+ ${PERL5_ARCHLIB:S/^${BUILDLINK_PREFIX.perl}\///}/auto/DynaLoader/DynaLoader.a
BUILDLINK_TARGETS+= perl-buildlink