diff options
-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 |