| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: replace.mk,v 1.265 2013/11/16 07:58:00 shattered Exp $ | | 1 | # $NetBSD: replace.mk,v 1.266 2014/02/02 07:09:23 richard 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 |
| @@ -942,29 +942,29 @@ MAKEFLAGS+= TOOLS_IGNORE.${_t_}= | | | @@ -942,29 +942,29 @@ MAKEFLAGS+= TOOLS_IGNORE.${_t_}= |
942 | _TOOLS_USE_PKGSRC.perl= yes | | 942 | _TOOLS_USE_PKGSRC.perl= yes |
943 | TOOLS_DEPENDS.${_t_}?= perl>=${PERL5_REQD}:../../lang/perl5 | | 943 | TOOLS_DEPENDS.${_t_}?= perl>=${PERL5_REQD}:../../lang/perl5 |
944 | TOOLS_CREATE+= ${_t_} | | 944 | TOOLS_CREATE+= ${_t_} |
945 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=perl | | 945 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=perl |
946 | TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} | | 946 | TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/${_t_} |
947 | . endif | | 947 | . endif |
948 | . endif | | 948 | . endif |
949 | .endfor | | 949 | .endfor |
950 | | | 950 | |
951 | # These tools are all supplied by the sysutils/coreutils package if | | 951 | # These tools are all supplied by the sysutils/coreutils package if |
952 | # there is no native tool available. | | 952 | # there is no native tool available. |
953 | # | | 953 | # |
954 | _TOOLS.coreutils= basename cat chgrp chmod chown cp cut date \ | | 954 | _TOOLS.coreutils= basename cat chgrp chmod chown cp cut date \ |
955 | dirname echo env expr false head hostname id install \ | | 955 | dirname echo env expr false head hostname id install \ |
956 | ln ls mkdir mv nice printf pwd readlink rm rmdir \ | | 956 | ln ls mkdir mv nice numfmt printf pwd readlink realpath \ |
957 | sleep sort tail tee test touch tr true tsort wc | | 957 | rm rmdir sleep sort tail tee test touch tr true tsort wc |
958 | | | 958 | |
959 | .for _t_ in ${_TOOLS.coreutils} | | 959 | .for _t_ in ${_TOOLS.coreutils} |
960 | . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) | | 960 | . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) |
961 | . if !empty(PKGPATH:Msysutils/coreutils) | | 961 | . if !empty(PKGPATH:Msysutils/coreutils) |
962 | MAKEFLAGS+= TOOLS_IGNORE.${_t_}= | | 962 | MAKEFLAGS+= TOOLS_IGNORE.${_t_}= |
963 | . elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) | | 963 | . elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) |
964 | TOOLS_DEPENDS.${_t_}?= coreutils>=5.2.1:../../sysutils/coreutils | | 964 | TOOLS_DEPENDS.${_t_}?= coreutils>=5.2.1:../../sysutils/coreutils |
965 | TOOLS_CREATE+= ${_t_} | | 965 | TOOLS_CREATE+= ${_t_} |
966 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=coreutils | | 966 | TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=coreutils |
967 | TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/g${_t_} | | 967 | TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/bin/g${_t_} |
968 | . endif | | 968 | . endif |
969 | . endif | | 969 | . endif |
970 | .endfor | | 970 | .endfor |