1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
# $NetBSD: defaults.mk,v 1.26 2005/06/07 16:57:37 jlam Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Johnny C. Lam.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the NetBSD
# Foundation, Inc. and its contributors.
# 4. Neither the name of The NetBSD Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
.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 "${_PKGSRC_TOPDIR}/mk/tools/bootstrap.mk"
.if exists(${_PKGSRC_TOPDIR}/mk/tools/tools.${OPSYS}.mk)
. include "${_PKGSRC_TOPDIR}/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= YACC
_TOOLS_VARNAME.bzcat= BZCAT
_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
_TOOLS_VARNAME.imake= IMAKE
_TOOLS_VARNAME.install= INSTALL
_TOOLS_VARNAME.ldconfig= LDCONFIG
_TOOLS_VARNAME.lex= LEX
_TOOLS_VARNAME.lha= LHA
_TOOLS_VARNAME.ln= LN
_TOOLS_VARNAME.ls= LS
_TOOLS_VARNAME.m4= M4
_TOOLS_VARNAME.mail= MAIL_CMD
_TOOLS_VARNAME.mkdir= MKDIR
_TOOLS_VARNAME.mktemp= MKTEMP
_TOOLS_VARNAME.mtree= MTREE
_TOOLS_VARNAME.mv= MV
_TOOLS_VARNAME.nice= NICE
_TOOLS_VARNAME.nroff= NROFF
_TOOLS_VARNAME.patch= PATCH
_TOOLS_VARNAME.pax= PAX
_TOOLS_VARNAME.perl= PERL5
_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.tar= TAR
_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.unrar= UNRAR
_TOOLS_VARNAME.unzip= UNZIP
_TOOLS_VARNAME.unzoo= UNZOO
_TOOLS_VARNAME.wc= WC
_TOOLS_VARNAME.xargs= XARGS
_TOOLS_VARNAME.xmkmf= XMKMF_CMD
_TOOLS_VARNAME.yacc= YACC
######################################################################
# "TOOL" variable names associated with each of the tools that are
# expected by GNU configure script.
_TOOLS_VARNAME_GNU.awk= AWK
_TOOLS_VARNAME_GNU.bison-yacc= YACC
_TOOLS_VARNAME_GNU.chmod= CHMOD
_TOOLS_VARNAME_GNU.cmp= CMP
_TOOLS_VARNAME_GNU.cp= CP
_TOOLS_VARNAME_GNU.echo= ECHO
_TOOLS_VARNAME_GNU.egrep= EGREP ac_cv_path_EGREP
_TOOLS_VARNAME_GNU.env= SETENV ENV_PROG ac_cv_path_ENV
_TOOLS_VARNAME_GNU.find= FIND
_TOOLS_VARNAME_GNU.gawk= AWK
_TOOLS_VARNAME_GNU.gm4= M4
_TOOLS_VARNAME_GNU.grep= GREP ac_cv_path_GREP
_TOOLS_VARNAME_GNU.gsed= SED
_TOOLS_VARNAME_GNU.gtar= TAR
_TOOLS_VARNAME_GNU.hostname= HOSTNAME
_TOOLS_VARNAME_GNU.lex= LEX
_TOOLS_VARNAME_GNU.ln= LN
_TOOLS_VARNAME_GNU.m4= M4
_TOOLS_VARNAME_GNU.mkdir= MKDIR
_TOOLS_VARNAME_GNU.mv= MV
_TOOLS_VARNAME_GNU.perl= PERL
_TOOLS_VARNAME_GNU.rm= RM
_TOOLS_VARNAME_GNU.rmdir= RMDIR
_TOOLS_VARNAME_GNU.sed= SED
_TOOLS_VARNAME_GNU.sort= SORT
_TOOLS_VARNAME_GNU.tar= TAR
_TOOLS_VARNAME_GNU.touch= TOUCH
_TOOLS_VARNAME_GNU.xmkmf= XMKMF
_TOOLS_VARNAME_GNU.yacc= YACC
######################################################################
# Set a default value for the TOOL names for each of the tools we claim
# 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.
#
.for _t_ in ${PKGSRC_USE_TOOLS:O:u}
. if defined(_TOOLS_VARNAME.${_t_}) && \
defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_})
. for _v_ in ${_TOOLS_VARNAME.${_t_}}
${_v_}?= ${TOOLS_PLATFORM.${_t_}}
. endfor
. undef _v_
. endif
.endfor
.undef _t_
.endif # TOOLS_DEFAULTS_MK
|