summaryrefslogtreecommitdiff
path: root/lang/perl5
diff options
context:
space:
mode:
authorjlam <jlam>2003-09-13 08:22:07 +0000
committerjlam <jlam>2003-09-13 08:22:07 +0000
commitc8f88728f92808124e52542b4bfad462a73ffb7c (patch)
tree53b1da443a4fd2ca3a0a5cd622effaae60928281 /lang/perl5
parent19e7817d5f1c0268582494bed091ec65b98dec27 (diff)
downloadpkgsrc-c8f88728f92808124e52542b4bfad462a73ffb7c.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/perl5')
-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