diff options
author | jlam <jlam> | 2002-09-05 20:44:44 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-05 20:44:44 +0000 |
commit | 982fa48dc95d1d2d2114fdc9de9c04088a3513e0 (patch) | |
tree | dbd41c2e57de86eac5fa02caf3870deaead4a0a7 /lang | |
parent | a6d5e3f2f94419735bf409aa58bd0170c5f8d5bd (diff) | |
download | pkgsrc-982fa48dc95d1d2d2114fdc9de9c04088a3513e0.tar.gz |
Only add a build dependency on perl if USE_PERL5 == "build".
Diffstat (limited to 'lang')
-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 |