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