If we only define the "TOOL" variable if the real command exists, then

the "TOOL" variables won't be properly defined for the top-leve make
after returning from making the install-depends target if we're using
the pkgsrc-supplied tool.  Define the "TOOL" variable unconditionally
instead.
This commit is contained in:
jlam 2005-05-02 06:36:29 +00:00
parent cd61460694
commit 157b5ae130
2 changed files with 2 additions and 126 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: perl.mk,v 1.4 2005/05/02 04:33:53 jlam Exp $
# $NetBSD: perl.mk,v 1.5 2005/05/02 06:36:29 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
@ -13,9 +13,7 @@ TOOLS_DEPMETHOD.perl?= BUILD_DEPENDS
TOOLS_DEPENDS.perl?= ${BUILDLINK_DEPENDS.perl}:${BUILDLINK_PKGSRCDIR.perl}
TOOLS_SYMLINK+= perl
TOOLS_REAL_CMD.perl= ${LOCALBASE}/bin/perl
. 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})

View file

@ -1,4 +1,4 @@
# $NetBSD: replace.mk,v 1.55 2005/05/02 02:50:34 jlam Exp $
# $NetBSD: replace.mk,v 1.56 2005/05/02 06:36:29 jlam Exp $
#
# This Makefile fragment handles "replacements" of system-supplied
# tools with pkgsrc versions. The replacements are placed under
@ -103,9 +103,7 @@ MAKEFLAGS+= TOOLS_IGNORE.awk=
TOOLS_DEPENDS.awk?= gawk>=3.1.1:../../lang/gawk
TOOLS_SYMLINK+= awk
TOOLS_REAL_CMD.awk= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk
. if exists(${TOOLS_REAL_CMD.awk})
${_TOOLS_VARNAME.awk}= ${TOOLS_REAL_CMD.awk}
. endif
. endif
.endif
@ -116,9 +114,7 @@ MAKEFLAGS+= TOOLS_IGNORE.basename=
TOOLS_DEPENDS.basename?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= basename
TOOLS_REAL_CMD.basename= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}basename
. if exists(${TOOLS_REAL_CMD.basename})
${_TOOLS_VARNAME.basename}= ${TOOLS_REAL_CMD.basename}
. endif
. endif
.endif
@ -130,9 +126,7 @@ TOOLS_DEPENDS.bison?= bison>=1.0:../../devel/bison
TOOLS_WRAP+= bison
TOOLS_REAL_CMD.bison= ${LOCALBASE}/bin/bison
TOOLS_ARGS.bison= -y
. if exists(${TOOLS_REAL_CMD.bison})
${_TOOLS_VARNAME.bison}= ${TOOLS_REAL_CMD.bison} ${TOOLS_ARGS.bison}
. endif
. endif
TOOLS_CMD.bison= ${TOOLS_DIR}/bin/yacc
.endif
@ -144,9 +138,7 @@ MAKEFLAGS+= TOOLS_IGNORE.bzcat=
TOOLS_DEPENDS.bzcat?= bzip2>=0.9.0b:../../archivers/bzip2
TOOLS_SYMLINK+= bzcat
TOOLS_REAL_CMD.bzcat= ${LOCALBASE}/bin/bzcat
. if exists(${TOOLS_REAL_CMD.bzcat})
${_TOOLS_VARNAME.bzcat}= ${TOOLS_REAL_CMD.bzcat}
. endif
. endif
.endif
@ -157,9 +149,7 @@ MAKEFLAGS+= TOOLS_IGNORE.cat=
TOOLS_DEPENDS.cat?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= cat
TOOLS_REAL_CMD.cat= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}cat
. if exists(${TOOLS_REAL_CMD.cat})
${_TOOLS_VARNAME.cat}= ${TOOLS_REAL_CMD.cat}
. endif
. endif
.endif
@ -170,9 +160,7 @@ MAKEFLAGS+= TOOLS_IGNORE.chgrp=
TOOLS_DEPENDS.chgrp?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= chgrp
TOOLS_REAL_CMD.chgrp= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}chgrp
. if exists(${TOOLS_REAL_CMD.chgrp})
${_TOOLS_VARNAME.chgrp}= ${TOOLS_REAL_CMD.chgrp}
. endif
. endif
.endif
@ -183,9 +171,7 @@ MAKEFLAGS+= TOOLS_IGNORE.chmod=
TOOLS_DEPENDS.chmod?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= chmod
TOOLS_REAL_CMD.chmod= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}chmod
. if exists(${TOOLS_REAL_CMD.chmod})
${_TOOLS_VARNAME.chmod}= ${TOOLS_REAL_CMD.chmod}
. endif
. endif
.endif
@ -196,9 +182,7 @@ MAKEFLAGS+= TOOLS_IGNORE.chown=
TOOLS_DEPENDS.chown?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= chown
TOOLS_REAL_CMD.chown= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}chown
. if exists(${TOOLS_REAL_CMD.chown})
${_TOOLS_VARNAME.chown}= ${TOOLS_REAL_CMD.chown}
. endif
. endif
.endif
@ -209,9 +193,7 @@ MAKEFLAGS+= TOOLS_IGNORE.cmp=
TOOLS_DEPENDS.cmp?= diffutils>=2.8.1:../../devel/diffutils
TOOLS_SYMLINK+= cmp
TOOLS_REAL_CMD.cmp= ${LOCALBASE}/bin/cmp
. if exists(${TOOLS_REAL_CMD.cmp})
${_TOOLS_VARNAME.cmp}= ${TOOLS_REAL_CMD.cmp}
. endif
. endif
.endif
@ -222,9 +204,7 @@ MAKEFLAGS+= TOOLS_IGNORE.cp=
TOOLS_DEPENDS.cp?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= cp
TOOLS_REAL_CMD.cp= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}cp
. if exists(${TOOLS_REAL_CMD.cp})
${_TOOLS_VARNAME.cp}= ${TOOLS_REAL_CMD.cp}
. endif
. endif
.endif
@ -235,9 +215,7 @@ MAKEFLAGS+= TOOLS_IGNORE.cut=
TOOLS_DEPENDS.cut?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= cut
TOOLS_REAL_CMD.cut= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}cut
. if exists(${TOOLS_REAL_CMD.cut})
${_TOOLS_VARNAME.cut}= ${TOOLS_REAL_CMD.cut}
. endif
. endif
.endif
@ -248,9 +226,7 @@ MAKEFLAGS+= TOOLS_IGNORE.date=
TOOLS_DEPENDS.date?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= date
TOOLS_REAL_CMD.date= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}date
. if exists(${TOOLS_REAL_CMD.date})
${_TOOLS_VARNAME.date}= ${TOOLS_REAL_CMD.date}
. endif
. endif
.endif
@ -261,9 +237,7 @@ MAKEFLAGS+= TOOLS_IGNORE.dirname=
TOOLS_DEPENDS.dirname?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= dirname
TOOLS_REAL_CMD.dirname= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}dirname
. if exists(${TOOLS_REAL_CMD.dirname})
${_TOOLS_VARNAME.dirname}= ${TOOLS_REAL_CMD.dirname}
. endif
. endif
.endif
@ -274,9 +248,7 @@ MAKEFLAGS+= TOOLS_IGNORE.echo=
TOOLS_DEPENDS.echo?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= echo
TOOLS_REAL_CMD.echo= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}echo
. if exists(${TOOLS_REAL_CMD.echo})
${_TOOLS_VARNAME.echo}= ${TOOLS_REAL_CMD.echo}
. endif
. endif
.endif
@ -287,9 +259,7 @@ MAKEFLAGS+= TOOLS_IGNORE.egrep=
TOOLS_DEPENDS.egrep?= grep>=2.5.1:../../textproc/grep
TOOLS_SYMLINK+= egrep
TOOLS_REAL_CMD.egrep= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}egrep
. if exists(${TOOLS_REAL_CMD.egrep})
${_TOOLS_VARNAME.egrep}= ${TOOLS_REAL_CMD.egrep}
. endif
. endif
.endif
@ -300,9 +270,7 @@ MAKEFLAGS+= TOOLS_IGNORE.env=
TOOLS_DEPENDS.env?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= env
TOOLS_REAL_CMD.env= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}env
. if exists(${TOOLS_REAL_CMD.env})
${_TOOLS_VARNAME.env}= ${TOOLS_REAL_CMD.env}
. endif
. endif
.endif
@ -313,9 +281,7 @@ MAKEFLAGS+= TOOLS_IGNORE.expr=
TOOLS_DEPENDS.expr?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= expr
TOOLS_REAL_CMD.expr= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}expr
. if exists(${TOOLS_REAL_CMD.expr})
${_TOOLS_VARNAME.expr}= ${TOOLS_REAL_CMD.expr}
. endif
. endif
.endif
@ -326,9 +292,7 @@ MAKEFLAGS+= TOOLS_IGNORE.false=
TOOLS_DEPENDS.false?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= false
TOOLS_REAL_CMD.false= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}false
. if exists(${TOOLS_REAL_CMD.false})
${_TOOLS_VARNAME.false}= ${TOOLS_REAL_CMD.false}
. endif
. endif
.endif
@ -339,9 +303,7 @@ MAKEFLAGS+= TOOLS_IGNORE.fgrep=
TOOLS_DEPENDS.fgrep?= grep>=2.5.1:../../textproc/grep
TOOLS_SYMLINK+= fgrep
TOOLS_REAL_CMD.fgrep= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}fgrep
. if exists(${TOOLS_REAL_CMD.fgrep})
${_TOOLS_VARNAME.fgrep}= ${TOOLS_REAL_CMD.fgrep}
. endif
. endif
.endif
@ -352,9 +314,7 @@ MAKEFLAGS+= TOOLS_IGNORE.file=
TOOLS_DEPENDS.file?= file>=4.13:../../sysutils/file
TOOLS_SYMLINK+= file
TOOLS_REAL_CMD.file= ${LOCALBASE}/bin/file
. if exists(${TOOLS_REAL_CMD.file})
${_TOOLS_VARNAME.file}= ${TOOLS_REAL_CMD.file}
. endif
. endif
.endif
@ -365,9 +325,7 @@ MAKEFLAGS+= TOOLS_IGNORE.find=
TOOLS_DEPENDS.find?= findutils>=4.1:../../sysutils/findutils
TOOLS_SYMLINK+= find
TOOLS_REAL_CMD.find= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}find
. if exists(${TOOLS_REAL_CMD.find})
${_TOOLS_VARNAME.find}= ${TOOLS_REAL_CMD.find}
. endif
. endif
.endif
@ -378,9 +336,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gawk=
TOOLS_DEPENDS.gawk?= gawk>=3.1.1:../../lang/gawk
TOOLS_SYMLINK+= gawk
TOOLS_REAL_CMD.gawk= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk
. if exists(${TOOLS_REAL_CMD.gawk})
${_TOOLS_VARNAME.gawk}= ${TOOLS_REAL_CMD.gawk}
. endif
. endif
TOOLS_CMD.gawk= ${TOOLS_DIR}/bin/awk
.endif
@ -392,9 +348,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gm4=
TOOLS_DEPENDS.gm4?= m4>=1.4:../../devel/m4
TOOLS_SYMLINK+= gm4
TOOLS_REAL_CMD.gm4= ${LOCALBASE}/bin/gm4
. if exists(${TOOLS_REAL_CMD.gm4})
${_TOOLS_VARNAME.gm4}= ${TOOLS_REAL_CMD.gm4}
. endif
. endif
TOOLS_CMD.gm4= ${TOOLS_DIR}/bin/m4
.endif
@ -406,9 +360,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gmake=
TOOLS_DEPENDS.gmake?= gmake>=3.78:../../devel/gmake
TOOLS_SYMLINK+= gmake
TOOLS_REAL_CMD.gmake= ${LOCALBASE}/bin/gmake
. if exists(${TOOLS_REAL_CMD.gmake})
${_TOOLS_VARNAME.gmake}= ${TOOLS_REAL_CMD.gmake}
. endif
. endif
.endif
@ -419,9 +371,7 @@ MAKEFLAGS+= TOOLS_IGNORE.grep=
TOOLS_DEPENDS.grep?= grep>=2.5.1:../../textproc/grep
TOOLS_SYMLINK+= grep
TOOLS_REAL_CMD.grep= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}grep
. if exists(${TOOLS_REAL_CMD.grep})
${_TOOLS_VARNAME.grep}= ${TOOLS_REAL_CMD.grep}
. endif
. endif
.endif
@ -432,9 +382,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gsed=
TOOLS_DEPENDS.gsed?= gsed>=3.0.2:../../textproc/gsed
TOOLS_SYMLINK+= gsed
TOOLS_REAL_CMD.gsed= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}sed
. if exists(${TOOLS_REAL_CMD.gsed})
${_TOOLS_VARNAME.gsed}= ${TOOLS_REAL_CMD.gsed}
. endif
. endif
TOOLS_CMD.gsed= ${TOOLS_DIR}/bin/sed
.endif
@ -450,9 +398,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gtar=
#TOOLS_DEPENDS.gtar?= pax>=20040802:../../archivers/pax
TOOLS_SYMLINK+= gtar
TOOLS_REAL_CMD.gtar= ${LOCALBASE}/bin/tar
. if exists(${TOOLS_REAL_CMD.gtar})
${_TOOLS_VARNAME.gtar}= ${TOOLS_REAL_CMD.gtar}
. endif
. endif
TOOLS_CMD.gtar= ${TOOLS_DIR}/bin/tar
.endif
@ -464,9 +410,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gunzip=
TOOLS_DEPENDS.gunzip?= gzip-base>=1.2.4b:../../archivers/gzip-base
TOOLS_SYMLINK+= gunzip
TOOLS_REAL_CMD.gunzip= ${LOCALBASE}/bin/gunzip
. if exists(${TOOLS_REAL_CMD.gunzip})
${_TOOLS_VARNAME.gunzip}= ${TOOLS_REAL_CMD.gunzip}
. endif
. endif
.endif
@ -477,9 +421,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gzcat=
TOOLS_DEPENDS.gzcat?= gzip-base>=1.2.4b:../../archivers/gzip-base
TOOLS_SYMLINK+= gzcat
TOOLS_REAL_CMD.gzcat= ${LOCALBASE}/bin/gzcat
. if exists(${TOOLS_REAL_CMD.gzcat})
${_TOOLS_VARNAME.gzcat}= ${TOOLS_REAL_CMD.gzcat}
. endif
. endif
.endif
@ -490,9 +432,7 @@ MAKEFLAGS+= TOOLS_IGNORE.gzip=
TOOLS_DEPENDS.gzip?= gzip-base>=1.2.4b:../../archivers/gzip-base
TOOLS_SYMLINK+= gzip
TOOLS_REAL_CMD.gzip= ${LOCALBASE}/bin/gzip
. if exists(${TOOLS_REAL_CMD.gzip})
${_TOOLS_VARNAME.gzip}= ${TOOLS_REAL_CMD.gzip}
. endif
. endif
.endif
@ -503,9 +443,7 @@ MAKEFLAGS+= TOOLS_IGNORE.head=
TOOLS_DEPENDS.head?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= head
TOOLS_REAL_CMD.head= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}head
. if exists(${TOOLS_REAL_CMD.head})
${_TOOLS_VARNAME.head}= ${TOOLS_REAL_CMD.head}
. endif
. endif
.endif
@ -516,9 +454,7 @@ MAKEFLAGS+= TOOLS_IGNORE.hostname=
TOOLS_DEPENDS.hostname?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= hostname
TOOLS_REAL_CMD.hostname= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}hostname
. if exists(${TOOLS_REAL_CMD.hostname})
${_TOOLS_VARNAME.hostname}= ${TOOLS_REAL_CMD.hostname}
. endif
. endif
.endif
@ -529,9 +465,7 @@ MAKEFLAGS+= TOOLS_IGNORE.id=
TOOLS_DEPENDS.id?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= id
TOOLS_REAL_CMD.id= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}id
. if exists(${TOOLS_REAL_CMD.id})
${_TOOLS_VARNAME.id}= ${TOOLS_REAL_CMD.id}
. endif
. endif
.endif
@ -543,9 +477,7 @@ MAKEFLAGS+= TOOLS_IGNORE.lex=
TOOLS_DEPENDS.lex?= ${BUILDLINK_DEPENDS.flex}:${BUILDLINK_PKGSRCDIR.flex}
TOOLS_SYMLINK+= lex
TOOLS_REAL_CMD.lex= ${LOCALBASE}/bin/flex
. if exists(${TOOLS_REAL_CMD.lex})
${_TOOLS_VARNAME.lex}= ${TOOLS_REAL_CMD.lex}
. endif
. endif
.endif
@ -556,9 +488,7 @@ MAKEFLAGS+= TOOLS_IGNORE.ln=
TOOLS_DEPENDS.ln?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= ln
TOOLS_REAL_CMD.ln= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}ln
. if exists(${TOOLS_REAL_CMD.ln})
${_TOOLS_VARNAME.ln}= ${TOOLS_REAL_CMD.ln}
. endif
. endif
.endif
@ -569,9 +499,7 @@ MAKEFLAGS+= TOOLS_IGNORE.ls=
TOOLS_DEPENDS.ls?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= ls
TOOLS_REAL_CMD.ls= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}ls
. if exists(${TOOLS_REAL_CMD.ls})
${_TOOLS_VARNAME.ls}= ${TOOLS_REAL_CMD.ls}
. endif
. endif
.endif
@ -582,9 +510,7 @@ MAKEFLAGS+= TOOLS_IGNORE.m4=
TOOLS_DEPENDS.m4?= m4>=1.4:../../devel/m4
TOOLS_SYMLINK+= m4
TOOLS_REAL_CMD.m4= ${LOCALBASE}/bin/gm4
. if exists(${TOOLS_REAL_CMD.m4})
${_TOOLS_VARNAME.m4}= ${TOOLS_REAL_CMD.m4}
. endif
. endif
.endif
@ -596,9 +522,7 @@ TOOLS_DEPENDS.mkdir?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_WRAP+= mkdir
TOOLS_REAL_CMD.mkdir= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}mkdir
TOOLS_ARGS.mkdir= -p
. if exists(${TOOLS_REAL_CMD.mkdir})
${_TOOLS_VARNAME.mkdir}= ${TOOLS_REAL_CMD.mkdir} ${TOOLS_ARGS.mkdir}
. endif
. endif
.endif
@ -613,9 +537,7 @@ MAKEFLAGS+= TOOLS_IGNORE.mtree=
#TOOLS_DEPENDS.mtree?= mtree>=20040722:../../pkgtools/mtree
TOOLS_SYMLINK+= mtree
TOOLS_REAL_CMD.mtree= ${LOCALBASE}/bin/mtree
. if exists(${TOOLS_REAL_CMD.mtree})
${_TOOLS_VARNAME.mtree}= ${TOOLS_REAL_CMD.mtree}
. endif
. endif
.endif
@ -626,9 +548,7 @@ MAKEFLAGS+= TOOLS_IGNORE.mv=
TOOLS_DEPENDS.mv?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= mv
TOOLS_REAL_CMD.mv= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}mv
. if exists(${TOOLS_REAL_CMD.mv})
${_TOOLS_VARNAME.mv}= ${TOOLS_REAL_CMD.mv}
. endif
. endif
.endif
@ -639,9 +559,7 @@ MAKEFLAGS+= TOOLS_IGNORE.nice=
TOOLS_DEPENDS.nice?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= nice
TOOLS_REAL_CMD.nice= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}nice
. if exists(${TOOLS_REAL_CMD.nice})
${_TOOLS_VARNAME.nice}= ${TOOLS_REAL_CMD.nice}
. endif
. endif
.endif
@ -652,9 +570,7 @@ MAKEFLAGS+= TOOLS_IGNORE.patch=
TOOLS_DEPENDS.patch?= patch>=2.2:../../devel/patch
TOOLS_SYMLINK+= patch
TOOLS_REAL_CMD.patch= ${LOCALBASE}/bin/gpatch
. if exists(${TOOLS_REAL_CMD.patch})
${_TOOLS_VARNAME.patch}= ${TOOLS_REAL_CMD.patch}
. endif
. endif
.endif
@ -669,9 +585,7 @@ MAKEFLAGS+= TOOLS_IGNORE.pax=
#TOOLS_DEPENDS.pax?= pax>=20040802:../../archivers/pax
TOOLS_SYMLINK+= pax
TOOLS_REAL_CMD.pax= ${LOCALBASE}/bin/pax
. if exists(${TOOLS_REAL_CMD.pax})
${_TOOLS_VARNAME.pax}= ${TOOLS_REAL_CMD.pax}
. endif
. endif
.endif
@ -682,9 +596,7 @@ MAKEFLAGS+= TOOLS_IGNORE.pwd=
TOOLS_DEPENDS.pwd?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= pwd
TOOLS_REAL_CMD.pwd= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}pwd
. if exists(${TOOLS_REAL_CMD.pwd})
${_TOOLS_VARNAME.pwd}= ${TOOLS_REAL_CMD.pwd}
. endif
. endif
.endif
@ -695,9 +607,7 @@ MAKEFLAGS+= TOOLS_IGNORE.rm=
TOOLS_DEPENDS.rm?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= rm
TOOLS_REAL_CMD.rm= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}rm
. if exists(${TOOLS_REAL_CMD.rm})
${_TOOLS_VARNAME.rm}= ${TOOLS_REAL_CMD.rm}
. endif
. endif
.endif
@ -708,9 +618,7 @@ MAKEFLAGS+= TOOLS_IGNORE.rmdir=
TOOLS_DEPENDS.rmdir?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= rmdir
TOOLS_REAL_CMD.rmdir= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}rmdir
. if exists(${TOOLS_REAL_CMD.rmdir})
${_TOOLS_VARNAME.rmdir}= ${TOOLS_REAL_CMD.rmdir}
. endif
. endif
.endif
@ -721,9 +629,7 @@ MAKEFLAGS+= TOOLS_IGNORE.sed=
TOOLS_DEPENDS.sed?= nbsed>=20040821:../../textproc/nbsed
TOOLS_SYMLINK+= sed
TOOLS_REAL_CMD.sed= ${LOCALBASE}/bin/nbsed
. if exists(${TOOLS_REAL_CMD.sed})
${_TOOLS_VARNAME.sed}= ${TOOLS_REAL_CMD.sed}
. endif
. endif
.endif
@ -734,9 +640,7 @@ MAKEFLAGS+= TOOLS_IGNORE.sh=
TOOLS_DEPENDS.sh?= pdksh>=5.2.14:../../shells/pdksh
TOOLS_SYMLINK+= sh
TOOLS_REAL_CMD.sh= ${LOCALBASE}/bin/pdksh
. if exists(${TOOLS_REAL_CMD.sh})
${_TOOLS_VARNAME.sh}= ${TOOLS_REAL_CMD.sh}
. endif
. endif
TOOLS_CMD.sh= ${TOOLS_DIR}/bin/sh
.endif
@ -748,9 +652,7 @@ MAKEFLAGS+= TOOLS_IGNORE.shlock=
TOOLS_DEPENDS.shlock?= shlock>=20020114:../../pkgtools/shlock
TOOLS_SYMLINK+= shlock
TOOLS_REAL_CMD.shlock= ${LOCALBASE}/bin/shlock
. if exists(${TOOLS_REAL_CMD.shlock})
${_TOOLS_VARNAME.shlock}= ${TOOLS_REAL_CMD.shlock}
. endif
. endif
.endif
@ -761,9 +663,7 @@ MAKEFLAGS+= TOOLS_IGNORE.sort=
TOOLS_DEPENDS.sort?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= sort
TOOLS_REAL_CMD.sort= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}sort
. if exists(${TOOLS_REAL_CMD.sort})
${_TOOLS_VARNAME.sort}= ${TOOLS_REAL_CMD.sort}
. endif
. endif
.endif
@ -774,9 +674,7 @@ MAKEFLAGS+= TOOLS_IGNORE.tail=
TOOLS_DEPENDS.tail?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= tail
TOOLS_REAL_CMD.tail= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}tail
. if exists(${TOOLS_REAL_CMD.tail})
${_TOOLS_VARNAME.tail}= ${TOOLS_REAL_CMD.tail}
. endif
. endif
.endif
@ -787,9 +685,7 @@ MAKEFLAGS+= TOOLS_IGNORE.tbl=
TOOLS_DEPENDS.tbl?= groff>=1.19nb4:../../textproc/groff
TOOLS_SYMLINK+= tbl
TOOLS_REAL_CMD.tbl= ${LOCALBASE}/bin/tbl
. if exists(${TOOLS_REAL_CMD.tbl})
${_TOOLS_VARNAME.tbl}= ${TOOLS_REAL_CMD.tbl}
. endif
. endif
.endif
@ -800,9 +696,7 @@ MAKEFLAGS+= TOOLS_IGNORE.tee=
TOOLS_DEPENDS.tee?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= tee
TOOLS_REAL_CMD.tee= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}tee
. if exists(${TOOLS_REAL_CMD.tee})
${_TOOLS_VARNAME.tee}= ${TOOLS_REAL_CMD.tee}
. endif
. endif
.endif
@ -813,9 +707,7 @@ MAKEFLAGS+= TOOLS_IGNORE.test=
TOOLS_DEPENDS.test?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= test
TOOLS_REAL_CMD.test= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}test
. if exists(${TOOLS_REAL_CMD.test})
${_TOOLS_VARNAME.test}= ${TOOLS_REAL_CMD.test}
. endif
. endif
.endif
@ -826,9 +718,7 @@ MAKEFLAGS+= TOOLS_IGNORE.touch=
TOOLS_DEPENDS.touch?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= touch
TOOLS_REAL_CMD.touch= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}touch
. if exists(${TOOLS_REAL_CMD.touch})
${_TOOLS_VARNAME.touch}= ${TOOLS_REAL_CMD.touch}
. endif
. endif
.endif
@ -839,9 +729,7 @@ MAKEFLAGS+= TOOLS_IGNORE.tr=
TOOLS_DEPENDS.tr?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= tr
TOOLS_REAL_CMD.tr= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}tr
. if exists(${TOOLS_REAL_CMD.tr})
${_TOOLS_VARNAME.tr}= ${TOOLS_REAL_CMD.tr}
. endif
. endif
.endif
@ -852,9 +740,7 @@ MAKEFLAGS+= TOOLS_IGNORE.true=
TOOLS_DEPENDS.true?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= true
TOOLS_REAL_CMD.true= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}true
. if exists(${TOOLS_REAL_CMD.true})
${_TOOLS_VARNAME.true}= ${TOOLS_REAL_CMD.true}
. endif
. endif
.endif
@ -865,9 +751,7 @@ MAKEFLAGS+= TOOLS_IGNORE.tsort=
TOOLS_DEPENDS.tsort?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= tsort
TOOLS_REAL_CMD.tsort= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}tsort
. if exists(${TOOLS_REAL_CMD.tsort})
${_TOOLS_VARNAME.tsort}= ${TOOLS_REAL_CMD.tsort}
. endif
. endif
.endif
@ -878,9 +762,7 @@ MAKEFLAGS+= TOOLS_IGNORE.wc=
TOOLS_DEPENDS.wc?= coreutils>=5.2.1:../../sysutils/coreutils
TOOLS_SYMLINK+= wc
TOOLS_REAL_CMD.wc= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}wc
. if exists(${TOOLS_REAL_CMD.wc})
${_TOOLS_VARNAME.wc}= ${TOOLS_REAL_CMD.wc}
. endif
. endif
.endif
@ -891,9 +773,7 @@ MAKEFLAGS+= TOOLS_IGNORE.xargs=
TOOLS_DEPENDS.xargs?= findutils>=4.1:../../sysutils/findutils
TOOLS_SYMLINK+= xargs
TOOLS_REAL_CMD.xargs= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}xargs
. if exists(${TOOLS_REAL_CMD.xargs})
${_TOOLS_VARNAME.xargs}= ${TOOLS_REAL_CMD.xargs}
. endif
. endif
.endif
@ -905,9 +785,7 @@ TOOLS_DEPENDS.yacc?= bison>=1.0:../../devel/bison
TOOLS_WRAP+= yacc
TOOLS_REAL_CMD.yacc= ${LOCALBASE}/bin/bison
TOOLS_ARGS.yacc= -y
. if exists(${TOOLS_REAL_CMD.yacc})
${_TOOLS_VARNAME.yacc}= ${TOOLS_REAL_CMD.yacc} ${TOOLS_ARGS.yacc}
. endif
. endif
.endif