pkgsrc/mk/tools/tools.Linux.mk

148 lines
4.3 KiB
Makefile

# $NetBSD: tools.Linux.mk,v 1.23 2005/06/24 20:59:59 jlam Exp $
#
# System-supplied tools for the Linux operating system.
TOOLS_PLATFORM.[?= [ # shell builtin
TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk}
.if exists(/bin/basename)
TOOLS_PLATFORM.basename?= /bin/basename
.elif exists(/usr/bin/basename)
TOOLS_PLATFORM.basename?= /usr/bin/basename
.endif
TOOLS_PLATFORM.bash?= /bin/bash
.if exists(/usr/bin/bison)
TOOLS_PLATFORM.bison?= /usr/bin/bison
TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y
.endif
.if exists(/usr/bin/bzcat)
TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat
.elif exists(/usr/bin/bzip2)
TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd
.endif
TOOLS_PLATFORM.cat?= /bin/cat
TOOLS_PLATFORM.chgrp?= /bin/chgrp
TOOLS_PLATFORM.chmod?= /bin/chmod
TOOLS_PLATFORM.chown?= /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/tcsh
.if exists(/bin/cut)
TOOLS_PLATFORM.cut?= /bin/cut
.elif exists(/usr/bin/cut)
TOOLS_PLATFORM.cut?= /usr/bin/cut
.endif
TOOLS_PLATFORM.date?= /bin/date
.if exists(/bin/diff)
TOOLS_PLATFORM.diff?= /bin/diff
.elif exists(/usr/bin/diff)
TOOLS_PLATFORM.diff?= /usr/bin/diff
.endif
TOOLS_PLATFORM.dirname?= /usr/bin/dirname
TOOLS_PLATFORM.echo?= echo # shell builtin
.if exists(/bin/egrep)
TOOLS_PLATFORM.egrep?= /bin/egrep
.elif exists(/usr/bin/egrep)
TOOLS_PLATFORM.egrep?= /usr/bin/egrep
.endif
TOOLS_PLATFORM.env?= /usr/bin/env
TOOLS_PLATFORM.expr?= /usr/bin/expr
TOOLS_PLATFORM.false?= false # shell builtin
.if exists(/bin/fgrep)
TOOLS_PLATFORM.fgrep?= /bin/fgrep
.elif exists(/usr/bin/fgrep)
TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep
.endif
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find
TOOLS_PLATFORM.gawk?= /usr/bin/awk
TOOLS_PLATFORM.gm4?= /usr/bin/m4
.if exists(/usr/bin/make)
TOOLS_PLATFORM.gmake?= /usr/bin/make
.endif
.if exists(/bin/grep)
TOOLS_PLATFORM.grep?= /bin/grep
.elif exists(/usr/bin/grep)
TOOLS_PLATFORM.grep?= /usr/bin/grep
.endif
.if exists(/bin/sed)
TOOLS_PLATFORM.gsed?= /bin/sed
.elif exists(/usr/bin/sed)
TOOLS_PLATFORM.gsed?= /usr/bin/sed
.endif
TOOLS_PLATFORM.gtar?= /bin/tar
.if exists(/bin/gunzip)
TOOLS_PLATFORM.gunzip?= /bin/gunzip -f
.elif exists(/usr/bin/gunzip)
TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
.endif
TOOLS_PLATFORM.gzcat?= /bin/zcat
.if exists(/bin/gzip)
TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP}
.elif exists(/usr/bin/gzip)
TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP}
.endif
.if exists(/bin/head)
TOOLS_PLATFORM.head?= /bin/head
.elif exists(/usr/bin/head)
TOOLS_PLATFORM.head?= /usr/bin/head
.endif
TOOLS_PLATFORM.hostname?= /bin/hostname
.if exists(/bin/id)
TOOLS_PLATFORM.id?= /bin/id
.elif exists(/usr/bin/id)
TOOLS_PLATFORM.id?= /usr/bin/id
.endif
TOOLS_PLATFORM.install?= /usr/bin/install
TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig
TOOLS_PLATFORM.ln?= /bin/ln
TOOLS_PLATFORM.ls?= /bin/ls
TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4}
.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
TOOLS_PLATFORM.mkdir?= /bin/mkdir -p
TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp
TOOLS_PLATFORM.mv?= /bin/mv
.if exists(/bin/nice)
TOOLS_PLATFORM.nice?= /bin/nice
.elif exists(/usr/bin/nice)
TOOLS_PLATFORM.nice?= /usr/bin/nice
.endif
.if exists(/usr/bin/nroff)
TOOLS_PLATFORM.nroff?= /usr/bin/nroff
.endif
TOOLS_PLATFORM.patch?= /usr/bin/patch
TOOLS_PLATFORM.pwd?= /bin/pwd
TOOLS_PLATFORM.rm?= /bin/rm
TOOLS_PLATFORM.rmdir?= /bin/rmdir
TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed}
TOOLS_PLATFORM.sh?= /bin/sh
.if exists(/bin/sort)
TOOLS_PLATFORM.sort?= /bin/sort
.elif exists(/usr/bin/sort)
TOOLS_PLATFORM.sort?= /usr/bin/sort
.endif
TOOLS_PLATFORM.strip?= /usr/bin/strip
TOOLS_PLATFORM.tail?= /usr/bin/tail
TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar}
.if exists(/usr/bin/tbl)
TOOLS_PLATFORM.tbl?= /usr/bin/tbl
.endif
TOOLS_PLATFORM.tee?= /usr/bin/tee
TOOLS_PLATFORM.test?= test # shell builtin
.if exists(/bin/touch)
TOOLS_PLATFORM.touch?= /bin/touch
.elif exists(/usr/bin/touch)
TOOLS_PLATFORM.touch?= /usr/bin/touch
.endif
TOOLS_PLATFORM.tr?= /usr/bin/tr
TOOLS_PLATFORM.true?= true # shell builtin
TOOLS_PLATFORM.tsort?= /usr/bin/tsort
TOOLS_PLATFORM.wc?= /usr/bin/wc
TOOLS_PLATFORM.xargs?= /usr/bin/xargs -r