2013-07-03 14:31:33 +02:00
|
|
|
# $NetBSD: tools.SunOS.mk,v 1.43 2013/07/03 12:31:33 jperkin Exp $
|
2005-04-27 17:28:16 +02:00
|
|
|
#
|
|
|
|
# System-supplied tools for the Solaris operating system.
|
2008-08-10 17:17:25 +02:00
|
|
|
#
|
|
|
|
# We bootstrap a pdksh shell on this platform.
|
2005-04-27 17:28:16 +02:00
|
|
|
|
2005-04-28 19:30:24 +02:00
|
|
|
TOOLS_PLATFORM.[?= [ # shell builtin
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/gawk)
|
|
|
|
TOOLS_PLATFORM.awk?= /usr/bin/gawk
|
|
|
|
.else
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.awk?= /usr/bin/nawk
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.basename?= /usr/bin/basename
|
2007-11-28 08:45:50 +01:00
|
|
|
.if exists(/bin/bash)
|
|
|
|
TOOLS_PLATFORM.bash?= /bin/bash
|
|
|
|
.endif
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/bison)
|
|
|
|
TOOLS_PLATFORM.bison?= /usr/bin/bison
|
|
|
|
TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bison)
|
|
|
|
TOOLS_PLATFORM.bison?= /usr/sfw/bin/bison
|
|
|
|
TOOLS_PLATFORM.bison-yacc?= /usr/sfw/bin/bison -y
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2005-05-14 03:04:37 +02:00
|
|
|
.if exists(/usr/bin/bzcat)
|
2005-05-02 04:50:33 +02:00
|
|
|
TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
|
|
|
|
.endif
|
2007-06-19 19:01:12 +02:00
|
|
|
.if exists(/usr/bin/bzip2)
|
|
|
|
TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cat?= /usr/bin/cat
|
|
|
|
TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
|
|
|
|
TOOLS_PLATFORM.chmod?= /usr/bin/chmod
|
|
|
|
TOOLS_PLATFORM.chown?= /usr/bin/chown
|
2005-05-14 03:04:37 +02:00
|
|
|
.if exists(/bin/cmp)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cmp?= /bin/cmp
|
2005-05-14 12:14:29 +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
|
2005-06-24 22:59:59 +02:00
|
|
|
TOOLS_PLATFORM.csh?= /bin/csh
|
2012-07-27 12:48:36 +02:00
|
|
|
.if exists(/usr/bin/curl)
|
|
|
|
TOOLS_PLATFORM.curl?= /usr/bin/curl
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.cut?= /usr/bin/cut
|
|
|
|
TOOLS_PLATFORM.date?= /usr/xpg4/bin/date
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/gdiff)
|
|
|
|
TOOLS_PLATFORM.diff?= /usr/bin/gdiff
|
|
|
|
.else
|
2005-06-23 22:45:34 +02:00
|
|
|
TOOLS_PLATFORM.diff?= /usr/bin/diff
|
|
|
|
.endif
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/gdiff3)
|
|
|
|
TOOLS_PLATFORM.diff3?= /usr/bin/gdiff3
|
|
|
|
.else
|
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
|
|
|
TOOLS_PLATFORM.diff3?= /usr/bin/diff3
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.dirname?= /usr/bin/dirname
|
2008-08-10 17:17:25 +02:00
|
|
|
TOOLS_PLATFORM.echo?= echo # shell builtin
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/gnu/bin/grep)
|
|
|
|
TOOLS_PLATFORM.grep?= /usr/gnu/bin/grep
|
|
|
|
TOOLS_PLATFORM.egrep?= /usr/gnu/bin/grep -E
|
|
|
|
TOOLS_PLATFORM.fgrep?= /usr/gnu/bin/fgrep
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/ggrep)
|
|
|
|
TOOLS_PLATFORM.grep?= /usr/sfw/bin/ggrep
|
|
|
|
TOOLS_PLATFORM.egrep?= /usr/sfw/bin/ggrep -E
|
|
|
|
TOOLS_PLATFORM.fgrep?= /usr/sfw/bin/gfgrep
|
2011-09-14 17:14:53 +02:00
|
|
|
.else
|
|
|
|
TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E
|
2011-09-14 17:14:53 +02:00
|
|
|
TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/fgrep
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.env?= /usr/bin/env
|
|
|
|
TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr
|
2008-09-12 01:00:31 +02:00
|
|
|
.if exists(/usr/gnu/bin/false) # if we are using OpenSolaris
|
|
|
|
TOOLS_PLATFORM.false?= /usr/gnu/bin/false
|
|
|
|
.else
|
2008-08-10 17:17:25 +02:00
|
|
|
TOOLS_PLATFORM.false?= false # shell builtin
|
2008-09-12 01:00:31 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.file?= /usr/bin/file
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/gnu/bin/find)
|
|
|
|
TOOLS_PLATFORM.find?= /usr/gnu/bin/find
|
|
|
|
.else
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.find?= /usr/bin/find
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/flex)
|
|
|
|
TOOLS_PLATFORM.flex?= /usr/bin/flex
|
|
|
|
TOOLS_PLATFORM.lex?= /usr/bin/flex
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/flex)
|
|
|
|
TOOLS_PLATFORM.flex?= /usr/sfw/bin/flex
|
|
|
|
TOOLS_PLATFORM.lex?= /usr/sfw/bin/flex
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/gawk)
|
|
|
|
TOOLS_PLATFORM.gawk?= /usr/bin/gawk
|
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/gm4)
|
|
|
|
TOOLS_PLATFORM.gm4?= /usr/bin/gm4
|
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/gmake)
|
|
|
|
TOOLS_PLATFORM.gmake?= /usr/bin/gmake
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/gmake)
|
|
|
|
TOOLS_PLATFORM.gmake?= /usr/sfw/bin/gmake
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/groff)
|
|
|
|
TOOLS_PLATFORM.groff?= /usr/bin/groff
|
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/gsed)
|
|
|
|
TOOLS_PLATFORM.gsed?= /usr/bin/gsed
|
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/gsoelim)
|
|
|
|
TOOLS_PLATFORM.gsoelim?= /usr/bin/gsoelim
|
|
|
|
.endif
|
|
|
|
.if exists(/usr/bin/gtar)
|
|
|
|
TOOLS_PLATFORM.gtar?= /usr/bin/gtar
|
|
|
|
TOOLS_PLATFORM.tar?= /usr/bin/gtar
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/gtar)
|
|
|
|
TOOLS_PLATFORM.gtar?= /usr/sfw/bin/gtar
|
|
|
|
TOOLS_PLATFORM.tar?= /usr/sfw/bin/gtar
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2005-04-27 17:28:16 +02:00
|
|
|
.if exists(/usr/bin/gzip)
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df
|
|
|
|
TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd
|
|
|
|
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
|
2005-04-27 17:28:16 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.head?= /usr/bin/head
|
|
|
|
TOOLS_PLATFORM.hostname?= /bin/hostname
|
|
|
|
TOOLS_PLATFORM.id?= /usr/xpg4/bin/id
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/install-info)
|
|
|
|
TOOLS_PLATFORM.install-info?= /usr/bin/install-info
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/install-info)
|
|
|
|
TOOLS_PLATFORM.install-info?= /usr/sfw/bin/install-info
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2008-08-09 17:14:01 +02:00
|
|
|
.if exists(/usr/bin/ginstall) # if we are using OpenSolaris
|
|
|
|
TOOLS_PLATFORM.install?= /usr/bin/ginstall
|
|
|
|
.else
|
2005-05-03 22:41:53 +02:00
|
|
|
TOOLS_PLATFORM.install?= /usr/ucb/install
|
2008-08-09 17:14:01 +02:00
|
|
|
.endif
|
2012-06-15 11:54:41 +02:00
|
|
|
TOOLS_PLATFORM.ksh?= /bin/ksh
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.ln?= /usr/bin/ln
|
|
|
|
TOOLS_PLATFORM.ls?= /usr/bin/ls
|
|
|
|
TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4
|
2005-05-03 18:30:34 +02:00
|
|
|
TOOLS_PLATFORM.mail?= /usr/bin/mailx
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/makeinfo)
|
|
|
|
TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/makeinfo)
|
|
|
|
TOOLS_PLATFORM.makeinfo?= /usr/sfw/bin/makeinfo
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p
|
2005-06-04 00:54:44 +02:00
|
|
|
.if exists(/usr/bin/mktemp)
|
|
|
|
TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.mv?= /usr/bin/mv
|
|
|
|
TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/gnroff)
|
|
|
|
TOOLS_PLATFORM.nroff?= /usr/bin/gnroff
|
2005-07-31 07:24:52 +02:00
|
|
|
.endif
|
2006-06-14 18:57:07 +02:00
|
|
|
.if exists(/usr/bin/openssl)
|
|
|
|
TOOLS_PLATFORM.openssl?= /usr/bin/openssl
|
|
|
|
.endif
|
2011-12-14 04:17:25 +01:00
|
|
|
# Don't use GNU patch
|
|
|
|
#TOOLS_PLATFORM.gpatch?= /usr/bin/gpatch
|
|
|
|
#TOOLS_PLATFORM.patch?= /usr/bin/gpatch
|
2013-07-03 14:31:33 +02:00
|
|
|
# Native pax doesn't support -O required by mk/extract/extract
|
|
|
|
#TOOLS_PLATFORM.pax?= /bin/pax
|
2011-09-29 16:09:11 +02:00
|
|
|
#.if exists(/usr/bin/perl)
|
|
|
|
#TOOLS_PLATFORM.perl?= /usr/bin/perl
|
|
|
|
#TOOLS_PLATFORM.pod2man?= /usr/perl5/bin/pod2man
|
|
|
|
#.endif
|
2011-10-04 15:07:21 +02:00
|
|
|
.if ${OS_VERSION} == "5.11" && exists(/usr/bin/pkg-config)
|
|
|
|
TOOLS_PLATFORM.pkg-config?= /usr/bin/pkg-config
|
|
|
|
.endif
|
2005-10-12 18:28:29 +02:00
|
|
|
TOOLS_PLATFORM.printf?= /bin/printf
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.pwd?= /bin/pwd
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/gnu/bin/readelf)
|
|
|
|
TOOLS_PLATFORM.readelf?= /usr/gnu/bin/readelf
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/greadelf)
|
|
|
|
TOOLS_PLATFORM.readelf?= /usr/sfw/bin/greadelf
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.rm?= /usr/bin/rm
|
|
|
|
TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/gsdiff)
|
|
|
|
TOOLS_PLATFORM.sdiff?= /usr/bin/gsdiff
|
|
|
|
.else
|
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
|
|
|
TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff
|
|
|
|
.endif
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/gnu/bin/sed)
|
|
|
|
TOOLS_PLATFORM.sed?= /usr/gnu/bin/sed
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.sh?= /bin/ksh
|
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)
|
2011-07-15 17:33:15 +02:00
|
|
|
TOOLS_PLATFORM.soelim?= /usr/bin/soelim
|
2005-11-08 04:36:13 +01:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.sort?= /usr/bin/sort
|
2012-06-26 00:05:17 +02:00
|
|
|
.if exists(/usr/ccs/bin/strip)
|
2005-05-10 21:56:51 +02:00
|
|
|
TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip
|
2012-06-26 00:05:17 +02:00
|
|
|
.elif exists(/usr/bin/strip)
|
|
|
|
TOOLS_PLATFORM.strip?= /usr/bin/strip
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail
|
2005-07-31 07:24:52 +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
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/texi2html)
|
|
|
|
TOOLS_PLATFORM.texi2html?= /usr/bin/texi2html
|
2011-10-04 15:08:42 +02:00
|
|
|
.elif exists(/usr/sfw/bin/texi2html)
|
|
|
|
TOOLS_PLATFORM.texi2html?= /usr/sfw/bin/texi2html
|
2011-09-14 17:14:53 +02:00
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.touch?= /usr/bin/touch
|
2011-09-14 17:14:53 +02:00
|
|
|
TOOLS_PLATFORM.tr?= /usr/xpg4/bin/tr
|
2008-08-10 17:17:25 +02:00
|
|
|
TOOLS_PLATFORM.true?= true # shell builtin
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/unzip)
|
|
|
|
TOOLS_PLATFORM.unzip?= /usr/bin/unzip
|
|
|
|
.endif
|
2005-04-27 18:52:28 +02:00
|
|
|
TOOLS_PLATFORM.wc?= /usr/bin/wc
|
|
|
|
TOOLS_PLATFORM.xargs?= /usr/bin/xargs
|
2011-09-14 17:14:53 +02:00
|
|
|
.if exists(/usr/bin/yacc)
|
|
|
|
TOOLS_PLATFORM.yacc?= /usr/bin/yacc
|
|
|
|
.endif
|
2012-01-14 03:11:00 +01:00
|
|
|
.if exists(/usr/bin/zip)
|
|
|
|
TOOLS_PLATFORM.zip?= /usr/bin/zip
|
|
|
|
TOOLS_PLATFORM.zipcloak?= /usr/bin/zipcloak
|
|
|
|
TOOLS_PLATFORM.zipnote?= /usr/bin/zipnote
|
|
|
|
TOOLS_PLATFORM.zipsplit?= /usr/bin/zipsplit
|
|
|
|
.endif
|