summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2002-09-05 20:43:19 +0000
committerjlam <jlam>2002-09-05 20:43:19 +0000
commita6d5e3f2f94419735bf409aa58bd0170c5f8d5bd (patch)
treef37ea0d9983e7f0021eee16b59498d5c7aca2215
parent2201fdb848842bd82c67d315b354e891cc63ab7e (diff)
downloadpkgsrc-a6d5e3f2f94419735bf409aa58bd0170c5f8d5bd.tar.gz
If USE_PERL5 is "build", then only set a build dependency on perl.
-rw-r--r--lang/perl5/buildlink2.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/perl5/buildlink2.mk b/lang/perl5/buildlink2.mk
index 88813cf3c6b..3cb17ff63b4 100644
--- a/lang/perl5/buildlink2.mk
+++ b/lang/perl5/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.3 2002/08/25 19:41:18 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.4 2002/09/05 20:43:19 jlam Exp $
.if !defined(PERL5_BUILDLINK2_MK)
PERL5_BUILDLINK2_MK= # defined
@@ -12,6 +12,10 @@ BUILDLINK_PACKAGES+= perl
BUILDLINK_DEPENDS.perl?= perl>=${PERL5_REQD}
BUILDLINK_PKGSRCDIR.perl?= ../../lang/perl5
+.if ${USE_PERL5} == "build"
+BUILDLINK_DEPMETHOD.perl?= build
+.endif
+
EVAL_PREFIX+= BUILDLINK_PREFIX.perl=perl
BUILDLINK_PREFIX.perl_DEFAULT= ${LOCALBASE}
PERL5?= ${BUILDLINK_PREFIX.perl}/bin/perl