diff options
-rw-r--r-- | lang/perl5/buildlink.mk | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/lang/perl5/buildlink.mk b/lang/perl5/buildlink.mk index cb08bcacfd0..208ace74167 100644 --- a/lang/perl5/buildlink.mk +++ b/lang/perl5/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.10 2002/07/22 22:04:33 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.11 2002/07/24 19:43:10 jlam Exp $ # # This Makefile fragment is included by packages that use perl. # @@ -10,34 +10,13 @@ .include "../../mk/bsd.buildlink.mk" -PERL5_REQD?= 5.0 -BUILDLINK_DEPENDS.perl?= perl>=${PERL5_REQD} +USE_PERL5?= run +BUILDLINK_DEPENDS.perl?= perl>=${PERL5_REQD} BUILDLINK_PREFIX.perl?= ${LOCALBASE} PERL5?= ${BUILDLINK_PREFIX.perl}/bin/perl -.if ${OPSYS} == "Darwin" -PERL5_REQD= 5.8.0 -DEPENDS+= ${BUILDLINK_DEPENDS.perl}:../../lang/perl58 -.else -DEPENDS+= ${BUILDLINK_DEPENDS.perl}:../../lang/perl5 -.endif - -.if exists(${PERL5}) -. if exists(${BUILDLINK_PREFIX.perl}/share/mk/bsd.perl.mk) -. include "${BUILDLINK_PREFIX.perl}/share/mk/bsd.perl.mk" -. elif !defined(PERL5_SITELIB) || !defined(PERL5_SITEARCH) || !defined(PERL5_ARCHLIB) -PERL5_SITELIB!= eval `${PERL5} -V:installsitelib 2>/dev/null`; \ - ${ECHO} $${installsitelib} -PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch 2>/dev/null`; \ - ${ECHO} $${installsitearch} -PERL5_ARCHLIB!= eval `${PERL5} -V:installarchlib 2>/dev/null`; \ - ${ECHO} $${installarchlib} -MAKEFLAGS+= PERL5_SITELIB=${PERL5_SITELIB} -MAKEFLAGS+= PERL5_SITEARCH=${PERL5_SITEARCH} -MAKEFLAGS+= PERL5_ARCHLIB=${PERL5_ARCHLIB} -. endif # !exists(bsd.perl.mk) && !defined(PERL5_*) -.endif # exists($PERL5) +DEPENDS+= ${BUILDLINK_DEPENDS.perl}:${PERL5_PKGSRCDIR} .if defined(USE_BUILDLINK_ONLY) BUILDLINK_TARGETS.perl= perl-buildlink |