2005-05-10 21:52:30 +02:00
|
|
|
# $NetBSD: defaults.mk,v 1.9 2005/05/10 19:52:30 jlam Exp $
|
2005-04-30 06:35:54 +02:00
|
|
|
|
|
|
|
.if !defined(TOOLS_DEFAULTS_MK)
|
|
|
|
TOOLS_DEFAULTS_MK= defined
|
|
|
|
|
|
|
|
# These are the platform-specific lists of system-supplied tools.
|
|
|
|
#
|
|
|
|
# XXX These should eventually just migrate over to the appropriate
|
|
|
|
# XXX pkgsrc/mk/platform/${OPSYS}.mk file.
|
|
|
|
#
|
|
|
|
.include "../../mk/tools/bootstrap.mk"
|
|
|
|
.if exists(../../mk/tools/tools.${OPSYS}.mk)
|
|
|
|
. include "../../mk/tools/tools.${OPSYS}.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# "TOOL" variable names associated with each of the tools
|
|
|
|
_TOOLS_VARNAME.awk= AWK
|
|
|
|
_TOOLS_VARNAME.basename= BASENAME
|
|
|
|
_TOOLS_VARNAME.bison= YACC
|
2005-05-02 04:50:33 +02:00
|
|
|
_TOOLS_VARNAME.bzcat= BZCAT
|
2005-04-30 06:35:54 +02:00
|
|
|
_TOOLS_VARNAME.cat= CAT
|
|
|
|
_TOOLS_VARNAME.chgrp= CHGRP
|
|
|
|
_TOOLS_VARNAME.chmod= CHMOD
|
|
|
|
_TOOLS_VARNAME.chown= CHOWN
|
|
|
|
_TOOLS_VARNAME.cmp= CMP
|
|
|
|
_TOOLS_VARNAME.cp= CP
|
|
|
|
_TOOLS_VARNAME.cut= CUT
|
|
|
|
_TOOLS_VARNAME.date= DATE
|
|
|
|
_TOOLS_VARNAME.dirname= DIRNAME
|
|
|
|
_TOOLS_VARNAME.echo= ECHO
|
|
|
|
_TOOLS_VARNAME.egrep= EGREP
|
|
|
|
_TOOLS_VARNAME.env= SETENV
|
|
|
|
_TOOLS_VARNAME.expr= EXPR
|
|
|
|
_TOOLS_VARNAME.false= FALSE
|
|
|
|
_TOOLS_VARNAME.fgrep= FGREP
|
|
|
|
_TOOLS_VARNAME.file= FILE_CMD
|
|
|
|
_TOOLS_VARNAME.find= FIND
|
|
|
|
_TOOLS_VARNAME.gawk= AWK
|
|
|
|
_TOOLS_VARNAME.gm4= M4
|
|
|
|
_TOOLS_VARNAME.gmake= GMAKE
|
|
|
|
_TOOLS_VARNAME.grep= GREP
|
|
|
|
_TOOLS_VARNAME.gsed= SED
|
|
|
|
_TOOLS_VARNAME.gtar= GTAR
|
|
|
|
_TOOLS_VARNAME.gunzip= GUNZIP_CMD
|
|
|
|
_TOOLS_VARNAME.gzcat= GZCAT
|
|
|
|
_TOOLS_VARNAME.gzip= GZIP_CMD
|
|
|
|
_TOOLS_VARNAME.head= HEAD
|
|
|
|
_TOOLS_VARNAME.hostname= HOSTNAME_CMD
|
|
|
|
_TOOLS_VARNAME.id= ID
|
2005-05-02 23:10:02 +02:00
|
|
|
_TOOLS_VARNAME.imake= IMAKE
|
2005-05-03 22:41:53 +02:00
|
|
|
_TOOLS_VARNAME.install= INSTALL
|
2005-05-02 06:42:08 +02:00
|
|
|
_TOOLS_VARNAME.ldconfig= LDCONFIG
|
2005-04-30 06:35:54 +02:00
|
|
|
_TOOLS_VARNAME.lex= LEX
|
|
|
|
_TOOLS_VARNAME.ln= LN
|
|
|
|
_TOOLS_VARNAME.ls= LS
|
|
|
|
_TOOLS_VARNAME.m4= M4
|
2005-05-03 18:30:34 +02:00
|
|
|
_TOOLS_VARNAME.mail= MAIL_CMD
|
2005-04-30 06:35:54 +02:00
|
|
|
_TOOLS_VARNAME.mkdir= MKDIR
|
|
|
|
_TOOLS_VARNAME.mtree= MTREE
|
|
|
|
_TOOLS_VARNAME.mv= MV
|
|
|
|
_TOOLS_VARNAME.nice= NICE
|
|
|
|
_TOOLS_VARNAME.patch= PATCH
|
|
|
|
_TOOLS_VARNAME.pax= PAX
|
|
|
|
_TOOLS_VARNAME.pwd= PWD_CMD
|
|
|
|
_TOOLS_VARNAME.rm= RM
|
|
|
|
_TOOLS_VARNAME.rmdir= RMDIR
|
|
|
|
_TOOLS_VARNAME.sed= SED
|
|
|
|
_TOOLS_VARNAME.sh= SH
|
|
|
|
_TOOLS_VARNAME.shlock= SHLOCK
|
|
|
|
_TOOLS_VARNAME.sort= SORT
|
|
|
|
_TOOLS_VARNAME.tail= TAIL
|
|
|
|
_TOOLS_VARNAME.tbl= TBL
|
|
|
|
_TOOLS_VARNAME.tee= TEE
|
|
|
|
_TOOLS_VARNAME.test= TEST
|
|
|
|
_TOOLS_VARNAME.touch= TOUCH
|
|
|
|
_TOOLS_VARNAME.tr= TR
|
|
|
|
_TOOLS_VARNAME.true= TRUE
|
|
|
|
_TOOLS_VARNAME.tsort= TSORT
|
|
|
|
_TOOLS_VARNAME.wc= WC
|
|
|
|
_TOOLS_VARNAME.xargs= XARGS
|
2005-05-02 23:10:02 +02:00
|
|
|
_TOOLS_VARNAME.xmkmf= XMKMF_CMD
|
2005-04-30 06:35:54 +02:00
|
|
|
_TOOLS_VARNAME.yacc= YACC
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Set a default value for the TOOL names for each of the tools we claim
|
Make a distinction between the tools that pkgsrc needs and the tools
that a package needs. Tools that pkgsrc needs are listed in
PKGSRC_USE_TOOLS, and tools that a package needs on top of that are
listed in USE_TOOLS.
Define "TOOL" variables, e.g. SED, AWK, MKDIR, etc. for each of the
tools that pkgsrc needs, and "TOOLS_TOOL" variables, e.g. TOOLS_SED,
TOOLS_AWK, TOOLS_MKDIR, etc. for each of the tools that a package
needs. These variables contain the full command line to the real
command and arguments needed to invoke the tool.
2005-05-10 21:06:58 +02:00
|
|
|
# we'll use in PKGSRC_USE_TOOLS to point to the platform command, e.g.,
|
|
|
|
# TBL, YACC, etc. These tools are used in the top-level make(1), not
|
|
|
|
# just in the targets, so these must be defined here, and this file be
|
|
|
|
# included by bsd.prefs.mk.
|
2005-04-30 06:35:54 +02:00
|
|
|
#
|
Make a distinction between the tools that pkgsrc needs and the tools
that a package needs. Tools that pkgsrc needs are listed in
PKGSRC_USE_TOOLS, and tools that a package needs on top of that are
listed in USE_TOOLS.
Define "TOOL" variables, e.g. SED, AWK, MKDIR, etc. for each of the
tools that pkgsrc needs, and "TOOLS_TOOL" variables, e.g. TOOLS_SED,
TOOLS_AWK, TOOLS_MKDIR, etc. for each of the tools that a package
needs. These variables contain the full command line to the real
command and arguments needed to invoke the tool.
2005-05-10 21:06:58 +02:00
|
|
|
.for _t_ in ${PKGSRC_USE_TOOLS:O:u}
|
2005-04-30 06:35:54 +02:00
|
|
|
. if defined(_TOOLS_VARNAME.${_t_}) && \
|
|
|
|
defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
|
|
|
|
${_TOOLS_VARNAME.${_t_}}?= ${TOOLS_PLATFORM.${_t_}}
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
.undef _t_
|
|
|
|
|
|
|
|
.endif # TOOLS_DEFAULTS_MK
|