summaryrefslogtreecommitdiff
path: root/mk/tools/defaults.mk
blob: ab9e1136a18a0d0c6a08b48a3c774478ee930bce (plain)
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# $NetBSD: defaults.mk,v 1.62 2018/08/22 20:48:37 maya 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.
#
# 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.
#
.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.bash=		BASH
_TOOLS_VARNAME.bison-yacc=	YACC
_TOOLS_VARNAME.byacc=		YACC
_TOOLS_VARNAME.bzcat=		BZCAT
_TOOLS_VARNAME.bzip2=		BZIP2
_TOOLS_VARNAME.cat=		CAT
_TOOLS_VARNAME.chgrp=		CHGRP
_TOOLS_VARNAME.chmod=		CHMOD
_TOOLS_VARNAME.chown=		CHOWN
_TOOLS_VARNAME.cmake=		CMAKE
_TOOLS_VARNAME.cmp=		CMP
_TOOLS_VARNAME.cp=		CP
_TOOLS_VARNAME.cpack=		CPACK
_TOOLS_VARNAME.csh=		CSH
_TOOLS_VARNAME.cut=		CUT
_TOOLS_VARNAME.date=		DATE
_TOOLS_VARNAME.diff=		DIFF
_TOOLS_VARNAME.digest=		DIGEST
_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.gem=		GEM
_TOOLS_VARNAME.gm4=		M4
_TOOLS_VARNAME.gmake=		GMAKE
_TOOLS_VARNAME.grep=		GREP
_TOOLS_VARNAME.gsed=		SED
_TOOLS_VARNAME.gsoelim=		SOELIM
_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.ident=		IDENT
_TOOLS_VARNAME.imake=		IMAKE
_TOOLS_VARNAME.install=		INSTALL
_TOOLS_VARNAME.install-info=	INSTALL_INFO
_TOOLS_VARNAME.lex=		LEX
_TOOLS_VARNAME.lha=		LHA
_TOOLS_VARNAME.ln=		LN
_TOOLS_VARNAME.ls=		LS
_TOOLS_VARNAME.lzcat=		LZCAT
_TOOLS_VARNAME.m4=		M4
_TOOLS_VARNAME.mail=		MAIL_CMD
_TOOLS_VARNAME.makeinfo=	MAKEINFO
_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.openssl=		OPENSSL
_TOOLS_VARNAME.7za=		P7ZA
_TOOLS_VARNAME.patch=		PATCH
_TOOLS_VARNAME.pax=		PAX
_TOOLS_VARNAME.perl=		PERL5
_TOOLS_VARNAME.pod2man=		POD2MAN
_TOOLS_VARNAME.printf=		PRINTF
_TOOLS_VARNAME.pwd=		PWD_CMD
_TOOLS_VARNAME.rm=		RM
_TOOLS_VARNAME.rmdir=		RMDIR
_TOOLS_VARNAME.rpm2pkg=		RPM2PKG
_TOOLS_VARNAME.sed=		SED
_TOOLS_VARNAME.sh=		SH
_TOOLS_VARNAME.shlock=		SHLOCK
_TOOLS_VARNAME.sleep=		SLEEP
_TOOLS_VARNAME.soelim=		SOELIM
_TOOLS_VARNAME.sort=		SORT
_TOOLS_VARNAME.tail=		TAIL
_TOOLS_VARNAME.tar=		TAR
_TOOLS_VARNAME.tbl=		TBL
_TOOLS_VARNAME.tclsh=		TCLSH
_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.uniq=		UNIQ
_TOOLS_VARNAME.unrar=		UNRAR
_TOOLS_VARNAME.unzip=		UNZIP_CMD
_TOOLS_VARNAME.unzoo=		UNZOO
_TOOLS_VARNAME.wc=		WC
_TOOLS_VARNAME.wish=		WISH
_TOOLS_VARNAME.xargs=		XARGS
_TOOLS_VARNAME.xmkmf=		XMKMF_CMD
_TOOLS_VARNAME.xz=		XZ
_TOOLS_VARNAME.xzcat=		XZCAT
_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.byacc=	YACC
_TOOLS_VARNAME_GNU.cat=		CAT ac_cv_path_CAT
_TOOLS_VARNAME_GNU.chmod=	CHMOD
_TOOLS_VARNAME_GNU.cmp=		CMP
_TOOLS_VARNAME_GNU.cp=		CP
_TOOLS_VARNAME_GNU.diff=	DIFF
_TOOLS_VARNAME_GNU.echo=	ECHO ac_cv_path_ECHO
_TOOLS_VARNAME_GNU.egrep=	EGREP ac_cv_path_EGREP
_TOOLS_VARNAME_GNU.env=		SETENV ENV_PROG ac_cv_path_ENV
_TOOLS_VARNAME_GNU.false=	FALSE ac_cv_path_FALSE
_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.ls=		LS
_TOOLS_VARNAME_GNU.m4=		M4
_TOOLS_VARNAME_GNU.mkdir=	MKDIR
_TOOLS_VARNAME_GNU.mv=		MV
_TOOLS_VARNAME_GNU.perl=	PERL PERL_PATH
_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.tclsh=	TCLSH
_TOOLS_VARNAME_GNU.test=	TEST ac_cv_path_TEST
_TOOLS_VARNAME_GNU.touch=	TOUCH
_TOOLS_VARNAME_GNU.tr=		TR
_TOOLS_VARNAME_GNU.true=	TRUE ac_cv_path_TRUE
_TOOLS_VARNAME_GNU.wish=	WISH
_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 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 ${USE_TOOLS:C/:.*//: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
.  endif
.endfor

.endif	# TOOLS_DEFAULTS_MK