pkgsrc/mk/tools/tools.SunOS.mk
jlam bb74d3bb13 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 04:32:10 +00:00

99 lines
3.1 KiB
Makefile

# $NetBSD: tools.SunOS.mk,v 1.25 2006/07/05 04:32:10 jlam Exp $
#
# System-supplied tools for the Solaris operating system.
TOOLS_PLATFORM.[?= [ # shell builtin
TOOLS_PLATFORM.awk?= /usr/bin/nawk
TOOLS_PLATFORM.basename?= /usr/bin/basename
.if exists(/usr/bin/bzcat)
TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
.endif
TOOLS_PLATFORM.cat?= /usr/bin/cat
TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp
TOOLS_PLATFORM.chmod?= /usr/bin/chmod
TOOLS_PLATFORM.chown?= /usr/bin/chown
.if exists(/bin/cmp)
TOOLS_PLATFORM.cmp?= /bin/cmp
.elif exists(/usr/bin/cmp)
TOOLS_PLATFORM.cmp?= /usr/bin/cmp
.endif
TOOLS_PLATFORM.cp?= /bin/cp
TOOLS_PLATFORM.csh?= /bin/csh
TOOLS_PLATFORM.cut?= /usr/bin/cut
TOOLS_PLATFORM.date?= /usr/xpg4/bin/date
.if exists(/bin/diff)
TOOLS_PLATFORM.diff?= /bin/diff
.elif exists(/usr/bin/diff)
TOOLS_PLATFORM.diff?= /usr/bin/diff
.endif
.if exists(/bin/diff3)
TOOLS_PLATFORM.diff3?= /bin/diff3
.elif exists(/usr/bin/diff3)
TOOLS_PLATFORM.diff3?= /usr/bin/diff3
.endif
TOOLS_PLATFORM.dirname?= /usr/bin/dirname
TOOLS_PLATFORM.echo?= /usr/ucb/echo
TOOLS_PLATFORM.egrep?= /usr/xpg4/bin/grep -E
TOOLS_PLATFORM.env?= /usr/bin/env
TOOLS_PLATFORM.expr?= /usr/xpg4/bin/expr
TOOLS_PLATFORM.false?= /usr/bin/false
TOOLS_PLATFORM.fgrep?= /usr/xpg4/bin/fgrep
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find
TOOLS_PLATFORM.grep?= /usr/xpg4/bin/grep
.if exists(/usr/bin/gzip)
TOOLS_PLATFORM.gunzip?= /usr/bin/gzip -df
TOOLS_PLATFORM.gzcat?= /usr/bin/gzip -cd
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
.endif
TOOLS_PLATFORM.head?= /usr/bin/head
TOOLS_PLATFORM.hostname?= /bin/hostname
TOOLS_PLATFORM.id?= /usr/xpg4/bin/id
TOOLS_PLATFORM.install?= /usr/ucb/install
TOOLS_PLATFORM.ln?= /usr/bin/ln
TOOLS_PLATFORM.ls?= /usr/bin/ls
TOOLS_PLATFORM.m4?= /usr/ccs/bin/m4
TOOLS_PLATFORM.mail?= /usr/bin/mailx
TOOLS_PLATFORM.mkdir?= /usr/bin/mkdir -p
.if exists(/usr/bin/mktemp)
TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
.endif
TOOLS_PLATFORM.mv?= /usr/bin/mv
TOOLS_PLATFORM.nice?= /usr/xpg4/bin/nice
.if exists(/usr/bin/nroff)
TOOLS_PLATFORM.nroff?= /usr/bin/nroff
.endif
.if exists(/usr/bin/openssl)
TOOLS_PLATFORM.openssl?= /usr/bin/openssl
.endif
.if exists(/usr/bin/gpatch)
TOOLS_PLATFORM.patch?= /usr/bin/gpatch
.endif
TOOLS_PLATFORM.printf?= /bin/printf
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.rm?= /usr/bin/rm
TOOLS_PLATFORM.rmdir?= /usr/bin/rmdir
.if exists(/bin/sdiff)
TOOLS_PLATFORM.sdiff?= /bin/sdiff
.elif exists(/usr/bin/sdiff)
TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff
.endif
TOOLS_PLATFORM.sh?= /bin/ksh
TOOLS_PLATFORM.sleep?= /bin/sleep
.if exists(/usr/bin/soelim)
TOOLS_PLATFORM.tbl?= /usr/bin/soelim
.endif
TOOLS_PLATFORM.sort?= /usr/bin/sort
TOOLS_PLATFORM.strip?= /usr/ccs/bin/strip
TOOLS_PLATFORM.tail?= /usr/xpg4/bin/tail
.if exists(/usr/bin/tbl)
TOOLS_PLATFORM.tbl?= /usr/bin/tbl
.endif
TOOLS_PLATFORM.tee?= /usr/bin/tee
TOOLS_PLATFORM.test?= test # shell builtin
TOOLS_PLATFORM.touch?= /usr/bin/touch
TOOLS_PLATFORM.tr?= /usr/bin/tr
TOOLS_PLATFORM.true?= /usr/bin/true
TOOLS_PLATFORM.tsort?= /usr/ccs/bin/tsort
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs