diff options
author | jlam <jlam> | 2002-07-24 19:43:10 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-07-24 19:43:10 +0000 |
commit | ad86dcc72c2c3be7128b76a6d1b3884fa7b1e1b7 (patch) | |
tree | 34d5a1a119bc4e579581d11f241136a75716e9ba | |
parent | b66b685d61a94a32cddbba721dba531a70cb240c (diff) | |
download | pkgsrc-ad86dcc72c2c3be7128b76a6d1b3884fa7b1e1b7.tar.gz |
Make use of USE_PERL5 and the other perl-related bits in bsd.pkg.mk instead
of duplicating all of the logic in this file.
-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 |