summaryrefslogtreecommitdiff
path: root/mk/tools/perl.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-04-28 03:01:11 +0000
committerjlam <jlam@pkgsrc.org>2005-04-28 03:01:11 +0000
commitab6ee6f23356b3efb8b70ca6dfe0f69f7891ea96 (patch)
treec6dcf6427b92bec2dbf7f999b008ac40a1f5a476 /mk/tools/perl.mk
parent710781cc2f5f07ee92d49177d0a50dddd4da6f33 (diff)
downloadpkgsrc-ab6ee6f23356b3efb8b70ca6dfe0f69f7891ea96.tar.gz
Define TOOLS_DEPENDS.* to be the dependency that will be added, and
filter out dependencies that have already been added.
Diffstat (limited to 'mk/tools/perl.mk')
-rw-r--r--mk/tools/perl.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/tools/perl.mk b/mk/tools/perl.mk
index 3c905f89a63..84d177f292a 100644
--- a/mk/tools/perl.mk
+++ b/mk/tools/perl.mk
@@ -1,4 +1,4 @@
-# $NetBSD: perl.mk,v 1.2 2005/04/27 17:59:09 jlam Exp $
+# $NetBSD: perl.mk,v 1.3 2005/04/28 03:01:11 jlam Exp $
# Create a symlink from ${TOOLS_DIR}/bin/perl to ${PERL5} when USE_PERL5
# is defined. This ensures that when "perl" is invoked, the pkgsrc perl
@@ -9,10 +9,17 @@
MAKEFLAGS+= TOOLS_IGNORE.perl=
. else
. include "../../lang/perl5/buildlink3.mk"
+TOOLS_DEPMETHOD.perl?= BUILD_DEPENDS
+TOOLS_DEPENDS.perl?= ${BUILDLINK_DEPENDS.perl}:${BUILDLINK_PKGSRCDIR.perl}
TOOLS_SYMLINK+= perl
TOOLS_REAL_CMD.perl= ${PERL5}
. if exists(${TOOLS_REAL_CMD.perl})
PERL5= ${TOOLS_REAL_CMD.perl}
. endif
. endif
+. if defined(TOOLS_DEPMETHOD.perl) && defined(TOOLS_DEPENDS.perl)
+. if empty(${TOOLS_DEPMETHOD.perl}:M${TOOLS_DEPENDS.perl})
+${TOOLS_DEPMETHOD.perl}+= ${TOOLS_DEPENDS.perl}
+. endif
+. endif
.endif