diff options
author | hans <hans> | 2011-11-29 16:13:08 +0000 |
---|---|---|
committer | hans <hans> | 2011-11-29 16:13:08 +0000 |
commit | e4c2661aff46cf6d3681c5aa4c7b7495c2e82c83 (patch) | |
tree | ef5f2f45555bb3b323f2ec7bf525db4436360628 /mk | |
parent | 7464bb9f800785d0d604ef42e4b96ac8a21bcff0 (diff) | |
download | pkgsrc-e4c2661aff46cf6d3681c5aa4c7b7495c2e82c83.tar.gz |
Unify handling of perl tools.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/replace.mk | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index d08fa4acb3e..0884729fc4f 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.233 2011/09/14 15:31:23 hans Exp $ +# $NetBSD: replace.mk,v 1.234 2011/11/29 16:13:08 hans Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -668,18 +668,6 @@ TOOLS_PATH.pax= ${TOOLS_PREFIX.pax}/bin/${NBPAX_PROGRAM_PREFIX}pax . endif .endif -.if !defined(TOOLS_IGNORE.perl) && !empty(_USE_TOOLS:Mperl) -. if !empty(PKGPATH:Mlang/perl5) -MAKEFLAGS+= TOOLS_IGNORE.perl= -. elif !empty(_TOOLS_USE_PKGSRC.perl:M[yY][eE][sS]) -. include "../../lang/perl5/version.mk" -TOOLS_DEPENDS.perl?= perl>=${PERL5_REQD}:../../lang/perl5 -TOOLS_CREATE+= perl -TOOLS_FIND_PREFIX+= TOOLS_PREFIX.perl=perl -TOOLS_PATH.perl= ${TOOLS_PREFIX.perl}/bin/perl -. endif -.endif - .if !defined(TOOLS_IGNORE.pkg-config) && !empty(_USE_TOOLS:Mpkg-config) . if !empty(PKGPATH:Mdevel/pkg-config) MAKEFLAGS+= TOOLS_IGNORE.pkg-config= @@ -693,18 +681,6 @@ AUTORECONF_ARGS+= -I ${TOOLS_PLATFORM.pkg-config:S/\/bin\/pkg-config//}/share/a . endif .endif -.if !defined(TOOLS_IGNORE.pod2man) && !empty(_USE_TOOLS:Mpod2man) -. if !empty(PKGPATH:Mlang/perl5) -MAKEFLAGS+= TOOLS_IGNORE.pod2man= -. elif !empty(_TOOLS_USE_PKGSRC.pod2man:M[yY][eE][sS]) -. include "../../lang/perl5/version.mk" -TOOLS_DEPENDS.pod2man?= perl>=${PERL5_REQD}:../../lang/perl5 -TOOLS_CREATE+= pod2man -TOOLS_FIND_PREFIX+= TOOLS_PREFIX.pod2man=perl -TOOLS_PATH.pod2man= ${TOOLS_PREFIX.pod2man}/bin/pod2man -. endif -.endif - .if !defined(TOOLS_IGNORE.rpm2pkg) && !empty(_USE_TOOLS:Mrpm2pkg) . if !empty(PKGPATH:Mpkgtools/rpm2pkg) MAKEFLAGS+= TOOLS_IGNORE.rpm2pkg= @@ -893,6 +869,24 @@ TOOLS_VALUE_GNU.yacc= ${TOOLS_CMDLINE.yacc} ###################################################################### +# These tools are all supplied by the lang/perl5 package if there is +# no native tool available. +# +_TOOLS.perl= perl pod2man + +.for _t_ in ${_TOOLS.perl} +. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) +. if !empty(PKGPATH:Mlang/perl5) +MAKEFLAGS+= TOOLS_IGNORE.${_t_}= +. elif !empty(_TOOLS_USE_PKGSRC.{_t_}:M[yY][eE][sS]) +TOOLS_DEPENDS.${_t_}?= perl>=${PERL5_REQD}:../../lang/perl5 +TOOLS_CREATE+= ${_t_} +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=perl +TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} +. endif +. endif +.endfor + # These tools are all supplied by the sysutils/coreutils package if # there is no native tool available. # |