Teach the tools framework about the following new tools:
itools, intltool, diff3, sdiff, msgmerge
* Adding USE_TOOLS+=itools to a package Makefile will cause the
tool-directory versions of imake, makedepend, mkdirhier and xmkmf
to point to the ones from the devel/nbitools package.
This change will remove the need for nbitools/buildlink3.mk, which
currently does a bit of hackery to force the "right" imake tools to
be used by packages that need it.
* Adding USE_TOOLS+=intltool to a package Makefile will cause the
local versions of intltool-* inside ${WRKSRC} to be replaced by
copies from the textproc/intltool package. If "intltool" is not
specified as a tool, then we create "broken" intltool-* tools in
the tools directory to help highlight hidden dependencies on the
intltool package.
In addition, modify the tools framework so that if "perl" is not
specified as a tool, then we create a "broken" perl tool in the
tools directory for the same reason as for "intltool".
These two changes together will remove the need for
intltools/buildlink3.mk and should also catch all cases where the
sources' intltools may have been silently used because perl was
found on the system.
* Adding USE_TOOLS+=diff3, USE_TOOLS+=sdiff, or USE_TOOLS+=msgmerge
to a package Makefile will cause the corresponding tool to be pulled
into the tools directory.
These are convenience tools to help simplify dependencies for some
packages.
2006-07-05 06:32:10 +02:00
|
|
|
# $NetBSD: tools.Linux.mk,v 1.37 2006/07/05 04:32:10 jlam Exp $
|
2005-04-27 17:28:16 +02:00
|
|
|
#
|
|
|
|
# System-supplied tools for the Linux operating system.
|
|
|
|
|
2005-04-28 19:30:24 +02:00
|
|
|
TOOLS_PLATFORM.[?= [ # shell builtin
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk}
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/basename)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.basename?= /bin/basename
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/basename)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.basename?= /usr/bin/basename
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-06-24 21:39:10 +02:00
|
|
|
TOOLS_PLATFORM.bash?= /bin/bash
|
2005-04-27 17:36:26 +02:00
|
|
|
.if exists(/usr/bin/bison)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.bison?= /usr/bin/bison
|
2005-05-16 01:20:38 +02:00
|
|
|
TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
|
2005-04-27 17:36:26 +02:00
|
|
|
.endif
|
2005-06-16 06:30:46 +02:00
|
|
|
.if exists(/usr/bin/bzcat)
|
|
|
|
TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
|
|
|
|
.elif exists(/usr/bin/bzip2)
|
|
|
|
TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cat?= /bin/cat
|
|
|
|
TOOLS_PLATFORM.chgrp?= /bin/chgrp
|
|
|
|
TOOLS_PLATFORM.chmod?= /bin/chmod
|
|
|
|
TOOLS_PLATFORM.chown?= /bin/chown
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/cmp)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cmp?= /bin/cmp
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/cmp)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cmp?= /usr/bin/cmp
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cp?= /bin/cp
|
2006-06-21 00:32:28 +02:00
|
|
|
.if exists(/bin/tcsh)
|
2005-06-24 22:59:59 +02:00
|
|
|
TOOLS_PLATFORM.csh?= /bin/tcsh
|
2006-06-21 00:32:28 +02:00
|
|
|
.endif
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/cut)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cut?= /bin/cut
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/cut)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cut?= /usr/bin/cut
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.date?= /bin/date
|
2005-06-23 22:45:34 +02:00
|
|
|
.if exists(/bin/diff)
|
|
|
|
TOOLS_PLATFORM.diff?= /bin/diff
|
|
|
|
.elif exists(/usr/bin/diff)
|
|
|
|
TOOLS_PLATFORM.diff?= /usr/bin/diff
|
|
|
|
.endif
|
Teach the tools framework about the following new tools:
itools, intltool, diff3, sdiff, msgmerge
* Adding USE_TOOLS+=itools to a package Makefile will cause the
tool-directory versions of imake, makedepend, mkdirhier and xmkmf
to point to the ones from the devel/nbitools package.
This change will remove the need for nbitools/buildlink3.mk, which
currently does a bit of hackery to force the "right" imake tools to
be used by packages that need it.
* Adding USE_TOOLS+=intltool to a package Makefile will cause the
local versions of intltool-* inside ${WRKSRC} to be replaced by
copies from the textproc/intltool package. If "intltool" is not
specified as a tool, then we create "broken" intltool-* tools in
the tools directory to help highlight hidden dependencies on the
intltool package.
In addition, modify the tools framework so that if "perl" is not
specified as a tool, then we create a "broken" perl tool in the
tools directory for the same reason as for "intltool".
These two changes together will remove the need for
intltools/buildlink3.mk and should also catch all cases where the
sources' intltools may have been silently used because perl was
found on the system.
* Adding USE_TOOLS+=diff3, USE_TOOLS+=sdiff, or USE_TOOLS+=msgmerge
to a package Makefile will cause the corresponding tool to be pulled
into the tools directory.
These are convenience tools to help simplify dependencies for some
packages.
2006-07-05 06:32:10 +02:00
|
|
|
.if exists(/bin/diff3)
|
|
|
|
TOOLS_PLATFORM.diff3?= /bin/diff3
|
|
|
|
.elif exists(/usr/bin/diff3)
|
|
|
|
TOOLS_PLATFORM.diff3?= /usr/bin/diff3
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.dirname?= /usr/bin/dirname
|
|
|
|
TOOLS_PLATFORM.echo?= echo # shell builtin
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/egrep)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.egrep?= /bin/egrep
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/egrep)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.egrep?= /usr/bin/egrep
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.env?= /usr/bin/env
|
|
|
|
TOOLS_PLATFORM.expr?= /usr/bin/expr
|
|
|
|
TOOLS_PLATFORM.false?= false # shell builtin
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/fgrep)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.fgrep?= /bin/fgrep
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/fgrep)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.file?= /usr/bin/file
|
|
|
|
TOOLS_PLATFORM.find?= /usr/bin/find
|
|
|
|
TOOLS_PLATFORM.gawk?= /usr/bin/awk
|
2006-06-26 20:14:51 +02:00
|
|
|
.if exists(/usr/bin/m4)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gm4?= /usr/bin/m4
|
2006-06-26 20:14:51 +02:00
|
|
|
.endif
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/usr/bin/make)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gmake?= /usr/bin/make
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
|
|
|
.if exists(/bin/grep)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.grep?= /bin/grep
|
2005-05-14 03:25:19 +02:00
|
|
|
.elif exists(/usr/bin/grep)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.grep?= /usr/bin/grep
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2006-05-21 18:55:21 +02:00
|
|
|
.if exists(/usr/bin/groff)
|
|
|
|
TOOLS_PLATFORM.groff?= /usr/bin/groff
|
|
|
|
.endif
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/sed)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gsed?= /bin/sed
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/sed)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gsed?= /usr/bin/sed
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2006-01-09 00:00:00 +01:00
|
|
|
.if exists(/usr/bin/soelim)
|
|
|
|
TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gtar?= /bin/tar
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/gunzip)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gunzip?= /bin/gunzip -f
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/gunzip)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gzcat?= /bin/zcat
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/gzip)
|
2005-05-14 12:19:36 +02:00
|
|
|
TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP}
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/gzip)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
|
|
|
.if exists(/bin/head)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.head?= /bin/head
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/head)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.head?= /usr/bin/head
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.hostname?= /bin/hostname
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/id)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.id?= /bin/id
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/id)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.id?= /usr/bin/id
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-05-03 22:41:53 +02:00
|
|
|
TOOLS_PLATFORM.install?= /usr/bin/install
|
2006-03-06 06:25:45 +01:00
|
|
|
.if exists(/sbin/install-info)
|
|
|
|
TOOLS_PLATFORM.install-info?= /sbin/install-info
|
|
|
|
.elif exists(/usr/sbin/install-info)
|
|
|
|
TOOLS_PLATFORM.install-info?= /usr/sbin/install-info
|
|
|
|
.elif exists(/usr/bin/install-info)
|
|
|
|
TOOLS_PLATFORM.install-info?= /usr/bin/install-info
|
|
|
|
.endif
|
2005-05-02 06:42:08 +02:00
|
|
|
TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.ln?= /bin/ln
|
|
|
|
TOOLS_PLATFORM.ls?= /bin/ls
|
|
|
|
TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4}
|
2005-05-03 18:30:34 +02:00
|
|
|
.if exists(/bin/mail)
|
|
|
|
TOOLS_PLATFORM.mail?= /bin/mail # RH, Mandrake
|
|
|
|
.elif exists(/usr/bin/mail)
|
|
|
|
TOOLS_PLATFORM.mail?= /usr/bin/mail # Debian, Slackware, SuSE
|
|
|
|
.endif
|
2006-03-05 17:27:22 +01:00
|
|
|
.if exists(/usr/bin/makeinfo)
|
|
|
|
TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
|
2005-08-26 07:41:39 +02:00
|
|
|
.if exists(/usr/bin/mktemp)
|
2005-06-04 00:54:44 +02:00
|
|
|
TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
|
2005-08-26 07:41:39 +02:00
|
|
|
.endif
|
2006-04-13 18:35:57 +02:00
|
|
|
.if exists(/usr/bin/msgfmt)
|
|
|
|
TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.mv?= /bin/mv
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/nice)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.nice?= /bin/nice
|
2005-05-13 21:53:08 +02:00
|
|
|
.elif exists(/usr/bin/nice)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.nice?= /usr/bin/nice
|
|
|
|
.endif
|
2005-05-26 23:46:13 +02:00
|
|
|
.if exists(/usr/bin/nroff)
|
|
|
|
TOOLS_PLATFORM.nroff?= /usr/bin/nroff
|
|
|
|
.endif
|
2006-06-14 18:57:07 +02:00
|
|
|
.if exists(/usr/bin/openssl)
|
|
|
|
TOOLS_PLATFORM.openssl?= /usr/bin/openssl
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.patch?= /usr/bin/patch
|
2005-10-12 18:28:29 +02:00
|
|
|
.if exists(/usr/bin/printf)
|
|
|
|
TOOLS_PLATFORM.printf?= /usr/bin/printf
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.pwd?= /bin/pwd
|
|
|
|
TOOLS_PLATFORM.rm?= /bin/rm
|
|
|
|
TOOLS_PLATFORM.rmdir?= /bin/rmdir
|
Teach the tools framework about the following new tools:
itools, intltool, diff3, sdiff, msgmerge
* Adding USE_TOOLS+=itools to a package Makefile will cause the
tool-directory versions of imake, makedepend, mkdirhier and xmkmf
to point to the ones from the devel/nbitools package.
This change will remove the need for nbitools/buildlink3.mk, which
currently does a bit of hackery to force the "right" imake tools to
be used by packages that need it.
* Adding USE_TOOLS+=intltool to a package Makefile will cause the
local versions of intltool-* inside ${WRKSRC} to be replaced by
copies from the textproc/intltool package. If "intltool" is not
specified as a tool, then we create "broken" intltool-* tools in
the tools directory to help highlight hidden dependencies on the
intltool package.
In addition, modify the tools framework so that if "perl" is not
specified as a tool, then we create a "broken" perl tool in the
tools directory for the same reason as for "intltool".
These two changes together will remove the need for
intltools/buildlink3.mk and should also catch all cases where the
sources' intltools may have been silently used because perl was
found on the system.
* Adding USE_TOOLS+=diff3, USE_TOOLS+=sdiff, or USE_TOOLS+=msgmerge
to a package Makefile will cause the corresponding tool to be pulled
into the tools directory.
These are convenience tools to help simplify dependencies for some
packages.
2006-07-05 06:32:10 +02:00
|
|
|
.if exists(/bin/sdiff)
|
|
|
|
TOOLS_PLATFORM.sdiff?= /bin/sdiff
|
|
|
|
.elif exists(/usr/bin/sdiff)
|
|
|
|
TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed}
|
|
|
|
TOOLS_PLATFORM.sh?= /bin/sh
|
2005-11-04 21:02:01 +01:00
|
|
|
TOOLS_PLATFORM.sleep?= /bin/sleep
|
2005-11-08 04:36:13 +01:00
|
|
|
.if exists(/usr/bin/soelim)
|
|
|
|
TOOLS_PLATFORM.soelim?= /usr/bin/soelim
|
|
|
|
.endif
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/sort)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.sort?= /bin/sort
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/sort)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.sort?= /usr/bin/sort
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-05-10 21:56:51 +02:00
|
|
|
TOOLS_PLATFORM.strip?= /usr/bin/strip
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.tail?= /usr/bin/tail
|
2005-05-14 23:15:07 +02:00
|
|
|
TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar}
|
2005-06-16 06:30:46 +02:00
|
|
|
.if exists(/usr/bin/tbl)
|
|
|
|
TOOLS_PLATFORM.tbl?= /usr/bin/tbl
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.tee?= /usr/bin/tee
|
|
|
|
TOOLS_PLATFORM.test?= test # shell builtin
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/bin/touch)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.touch?= /bin/touch
|
2005-04-27 17:28:16 +02:00
|
|
|
.elif exists(/usr/bin/touch)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.touch?= /usr/bin/touch
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.tr?= /usr/bin/tr
|
|
|
|
TOOLS_PLATFORM.true?= true # shell builtin
|
|
|
|
TOOLS_PLATFORM.tsort?= /usr/bin/tsort
|
|
|
|
TOOLS_PLATFORM.wc?= /usr/bin/wc
|
2005-05-16 00:37:46 +02:00
|
|
|
TOOLS_PLATFORM.xargs?= /usr/bin/xargs -r
|
2006-04-13 20:45:01 +02:00
|
|
|
.if exists(/usr/bin/xgettext)
|
|
|
|
TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext
|
|
|
|
.endif
|