pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/perl5 Make this work in pkgviews world where perl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26a7327d58dd
branches:  trunk
changeset: 461234:26a7327d58dd
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Sep 12 23:10:03 2003 +0000

description:
Make this work in pkgviews world where perl's prefix isn't necessarily
buildlink2's idea of BUILDLINK_PREFIX.perl (which usuall ${LOCALBASE}).

diffstat:

 lang/perl5/buildlink2.mk |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 195df43be801 -r 26a7327d58dd lang/perl5/buildlink2.mk
--- a/lang/perl5/buildlink2.mk  Fri Sep 12 22:53:18 2003 +0000
+++ b/lang/perl5/buildlink2.mk  Fri Sep 12 23:10:03 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.4 2002/09/05 20:43:19 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.5 2003/09/12 23:10:03 jlam Exp $
 
 .if !defined(PERL5_BUILDLINK2_MK)
 PERL5_BUILDLINK2_MK=  # defined
@@ -20,9 +20,16 @@
 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/^${BUILDLINK_PREFIX.perl}\///}/CORE/*         \
-       ${PERL5_ARCHLIB:S/^${BUILDLINK_PREFIX.perl}\///}/auto/DynaLoader/DynaLoader.a
+       ${PERL5_ARCHLIB:S/^${_PERL5_PREFIX}\///}/CORE/*                 \
+       ${PERL5_ARCHLIB:S/^${_PERL5_PREFIX}\///}/auto/DynaLoader/DynaLoader.a
 
 BUILDLINK_TARGETS+=    perl-buildlink
 



Home | Main Index | Thread Index | Old Index