diff options
author | jlam <jlam@pkgsrc.org> | 2005-04-28 03:01:11 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-04-28 03:01:11 +0000 |
commit | efc8bca44ceb090a858b31e2a177e2b90cf2b781 (patch) | |
tree | c6dcf6427b92bec2dbf7f999b008ac40a1f5a476 /mk/tools/perl.mk | |
parent | 9a3f61784815c055bf09e0ba11208a923d7d015c (diff) | |
download | pkgsrc-efc8bca44ceb090a858b31e2a177e2b90cf2b781.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.mk | 9 |
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 |