| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: replace.mk,v 1.282 2018/01/24 13:30:04 leot Exp $ | | 1 | # $NetBSD: replace.mk,v 1.283 2018/08/19 09:37:12 adam Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2005 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Johnny C. Lam. | | 7 | # by Johnny C. Lam. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -1266,27 +1266,27 @@ TOOLS_PATH.makedepend= ${X11BASE}/bin/ma | | | @@ -1266,27 +1266,27 @@ TOOLS_PATH.makedepend= ${X11BASE}/bin/ma |
1266 | . endif | | 1266 | . endif |
1267 | .endif | | 1267 | .endif |
1268 | | | 1268 | |
1269 | ###################################################################### | | 1269 | ###################################################################### |
1270 | | | 1270 | |
1271 | .for _t_ in ${_USE_TOOLS} | | 1271 | .for _t_ in ${_USE_TOOLS} |
1272 | . if !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) && \ | | 1272 | . if !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) && \ |
1273 | !defined(TOOLS_IGNORE.${_t_}) | | 1273 | !defined(TOOLS_IGNORE.${_t_}) |
1274 | ##### | | 1274 | ##### |
1275 | ##### Add the dependencies for each pkgsrc-supplied tool. | | 1275 | ##### Add the dependencies for each pkgsrc-supplied tool. |
1276 | ##### | | 1276 | ##### |
1277 | . if defined(_TOOLS_DEPMETHOD.${_t_}) && defined(TOOLS_DEPENDS.${_t_}) | | 1277 | . if defined(_TOOLS_DEPMETHOD.${_t_}) && defined(TOOLS_DEPENDS.${_t_}) |
1278 | . for _dep_ in ${TOOLS_DEPENDS.${_t_}} | | 1278 | . for _dep_ in ${TOOLS_DEPENDS.${_t_}} |
1279 | _dep_test := ${_dep_:C/\:.*$//} | | 1279 | _dep_test:= ${_dep_:C/\:.*$//} |
1280 | . if empty(${_TOOLS_DEPMETHOD.${_t_}}:C/\:.*$//:M${_dep_test}) | | 1280 | . if empty(${_TOOLS_DEPMETHOD.${_t_}}:C/\:.*$//:M${_dep_test}) |
1281 | ${_TOOLS_DEPMETHOD.${_t_}}+= ${_dep_} | | 1281 | ${_TOOLS_DEPMETHOD.${_t_}}+= ${_dep_} |
1282 | . endif | | 1282 | . endif |
1283 | . endfor | | 1283 | . endfor |
1284 | . endif | | 1284 | . endif |
1285 | . elif defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_}) | | 1285 | . elif defined(TOOLS_PLATFORM.${_t_}) && !empty(TOOLS_PLATFORM.${_t_}) |
1286 | ##### | | 1286 | ##### |
1287 | ##### For each system-supplied tool, break the tool down into a path | | 1287 | ##### For each system-supplied tool, break the tool down into a path |
1288 | ##### and arguments so that either a symlink or a wrapper will be | | 1288 | ##### and arguments so that either a symlink or a wrapper will be |
1289 | ##### properly created. | | 1289 | ##### properly created. |
1290 | ##### | | 1290 | ##### |
1291 | TOOLS_CREATE+= ${_t_} | | 1291 | TOOLS_CREATE+= ${_t_} |
1292 | TOOLS_PATH.${_t_}?= \ | | 1292 | TOOLS_PATH.${_t_}?= \ |