diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-05 20:44:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-05 20:44:44 +0000 |
commit | 9fbd525603378a576c87fd2c244cf2e38893608f (patch) | |
tree | dbd41c2e57de86eac5fa02caf3870deaead4a0a7 | |
parent | 3bf187540296ff5491c6582cf6ee09ee4f4d3f76 (diff) | |
download | pkgsrc-9fbd525603378a576c87fd2c244cf2e38893608f.tar.gz |
Only add a build dependency on perl if USE_PERL5 == "build".
-rw-r--r-- | lang/perl5/buildlink.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/perl5/buildlink.mk b/lang/perl5/buildlink.mk index 54f2cc3f22d..09892ccd708 100644 --- a/lang/perl5/buildlink.mk +++ b/lang/perl5/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.12 2002/08/25 18:39:27 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.13 2002/09/05 20:44:44 jlam Exp $ # # This Makefile fragment is included by packages that use perl. # @@ -16,7 +16,11 @@ BUILDLINK_DEPENDS.perl?= perl>=${PERL5_REQD} BUILDLINK_PREFIX.perl?= ${LOCALBASE} PERL5?= ${BUILDLINK_PREFIX.perl}/bin/perl +.if ${USE_PERL5} == "build" +BUILD_DEPENDS+= ${BUILDLINK_DEPENDS.perl}:${PERL5_PKGSRCDIR} +.else DEPENDS+= ${BUILDLINK_DEPENDS.perl}:${PERL5_PKGSRCDIR} +.endif .if defined(USE_BUILDLINK_ONLY) BUILDLINK_TARGETS.perl= perl-buildlink |