mk: Add native GNU/BSD grep where they are known to exist.diff -r1.58 -r1.59 pkgsrc/mk/tools/tools.Darwin.mk
(jperkin)
@@ -1,127 +1,130 @@ | @@ -1,127 +1,130 @@ | |||
1 | # $NetBSD: tools.Darwin.mk,v 1.58 2017/06/12 16:11:51 sevan Exp $ | 1 | # $NetBSD: tools.Darwin.mk,v 1.59 2018/10/17 08:30:43 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # System-supplied tools for the Darwin (Mac OS X) operating system. | 3 | # System-supplied tools for the Darwin (Mac OS X) operating system. | |
4 | 4 | |||
5 | TOOLS_PLATFORM.[?= [ # shell builtin | 5 | TOOLS_PLATFORM.[?= [ # shell builtin | |
6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | 6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | |
7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | 7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | |
8 | TOOLS_PLATFORM.bash?= /bin/bash | 8 | TOOLS_PLATFORM.bash?= /bin/bash | |
9 | # Native bison (at least up to version 2.3 in OSX Lion) does not work | 9 | # Native bison (at least up to version 2.3 in OSX Lion) does not work | |
10 | # well in the tools environment and cannot locate m4sugar.m4 without | 10 | # well in the tools environment and cannot locate m4sugar.m4 without | |
11 | # BISON_PKGDATADIR being set. For now just pull in the pkgsrc tool. | 11 | # BISON_PKGDATADIR being set. For now just pull in the pkgsrc tool. | |
12 | #TOOLS_PLATFORM.bison?= /usr/bin/bison | 12 | #TOOLS_PLATFORM.bison?= /usr/bin/bison | |
13 | #TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y | 13 | #TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y | |
14 | .if exists(/usr/bin/bsdtar) | 14 | .if exists(/usr/bin/bsdtar) | |
15 | TOOLS_PLATFORM.bsdtar?= /usr/bin/bsdtar | 15 | TOOLS_PLATFORM.bsdtar?= /usr/bin/bsdtar | |
16 | .endif | 16 | .endif | |
17 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | 17 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | |
18 | .if exists(/usr/bin/bzcat) | 18 | .if exists(/usr/bin/bzcat) | |
19 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | 19 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | |
20 | .endif | 20 | .endif | |
21 | .if exists(/usr/bin/bzip2) | 21 | .if exists(/usr/bin/bzip2) | |
22 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | 22 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | |
23 | .endif | 23 | .endif | |
24 | TOOLS_PLATFORM.cat?= /bin/cat | 24 | TOOLS_PLATFORM.cat?= /bin/cat | |
25 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | 25 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | |
26 | TOOLS_PLATFORM.chmod?= /bin/chmod | 26 | TOOLS_PLATFORM.chmod?= /bin/chmod | |
27 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | 27 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | |
28 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | 28 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | |
29 | TOOLS_PLATFORM.cp?= /bin/cp | 29 | TOOLS_PLATFORM.cp?= /bin/cp | |
30 | TOOLS_PLATFORM.csh?= /bin/tcsh | 30 | TOOLS_PLATFORM.csh?= /bin/tcsh | |
31 | .if exists(/usr/bin/curl) | 31 | .if exists(/usr/bin/curl) | |
32 | TOOLS_PLATFORM.curl?= /usr/bin/curl | 32 | TOOLS_PLATFORM.curl?= /usr/bin/curl | |
33 | .endif | 33 | .endif | |
34 | TOOLS_PLATFORM.cut?= /usr/bin/cut | 34 | TOOLS_PLATFORM.cut?= /usr/bin/cut | |
35 | TOOLS_PLATFORM.date?= /bin/date | 35 | TOOLS_PLATFORM.date?= /bin/date | |
36 | TOOLS_PLATFORM.diff?= /usr/bin/diff | 36 | TOOLS_PLATFORM.diff?= /usr/bin/diff | |
37 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | 37 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | |
38 | TOOLS_PLATFORM.echo?= echo # shell builtin | 38 | TOOLS_PLATFORM.echo?= echo # shell builtin | |
39 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | 39 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | |
40 | TOOLS_PLATFORM.env?= /usr/bin/env | 40 | TOOLS_PLATFORM.env?= /usr/bin/env | |
41 | TOOLS_PLATFORM.expr?= /bin/expr | 41 | TOOLS_PLATFORM.expr?= /bin/expr | |
42 | TOOLS_PLATFORM.false?= false # shell builtin | 42 | TOOLS_PLATFORM.false?= false # shell builtin | |
43 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | 43 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | |
44 | TOOLS_PLATFORM.file?= /usr/bin/file | 44 | TOOLS_PLATFORM.file?= /usr/bin/file | |
45 | TOOLS_PLATFORM.find?= /usr/bin/find | 45 | TOOLS_PLATFORM.find?= /usr/bin/find | |
46 | TOOLS_PLATFORM.flex?= /usr/bin/flex | 46 | TOOLS_PLATFORM.flex?= /usr/bin/flex | |
47 | TOOLS_PLATFORM.ftp?= /usr/bin/ftp | 47 | TOOLS_PLATFORM.ftp?= /usr/bin/ftp | |
48 | TOOLS_PLATFORM.gerep?= /usr/bin/egrep | |||
49 | TOOLS_PLATFORM.gfrep?= /usr/bin/fgrep | |||
50 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep | |||
48 | .if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) | 51 | .if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) | |
49 | TOOLS_PLATFORM.gmake?= /usr/bin/gnumake | 52 | TOOLS_PLATFORM.gmake?= /usr/bin/gnumake | |
50 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 | 53 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 | |
51 | .endif | 54 | .endif | |
52 | TOOLS_PLATFORM.grep?= /usr/bin/grep | 55 | TOOLS_PLATFORM.grep?= /usr/bin/grep | |
53 | .if exists(/usr/bin/groff) | 56 | .if exists(/usr/bin/groff) | |
54 | TOOLS_PLATFORM.groff?=/usr/bin/groff | 57 | TOOLS_PLATFORM.groff?=/usr/bin/groff | |
55 | .endif | 58 | .endif | |
56 | .if exists(/usr/bin/gnutar) | 59 | .if exists(/usr/bin/gnutar) | |
57 | TOOLS_PLATFORM.gtar?= /usr/bin/gnutar | 60 | TOOLS_PLATFORM.gtar?= /usr/bin/gnutar | |
58 | .endif | 61 | .endif | |
59 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | 62 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | |
60 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | 63 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | |
61 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | 64 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | |
62 | TOOLS_PLATFORM.head?= /usr/bin/head | 65 | TOOLS_PLATFORM.head?= /usr/bin/head | |
63 | TOOLS_PLATFORM.hostname?= /bin/hostname | 66 | TOOLS_PLATFORM.hostname?= /bin/hostname | |
64 | TOOLS_PLATFORM.id?= /usr/bin/id | 67 | TOOLS_PLATFORM.id?= /usr/bin/id | |
65 | TOOLS_PLATFORM.ident?= /usr/bin/ident | 68 | TOOLS_PLATFORM.ident?= /usr/bin/ident | |
66 | TOOLS_PLATFORM.install?= /usr/bin/install | 69 | TOOLS_PLATFORM.install?= /usr/bin/install | |
67 | .if exists(/usr/bin/install-info) | 70 | .if exists(/usr/bin/install-info) | |
68 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | 71 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | |
69 | .endif | 72 | .endif | |
70 | .if exists(/bin/ksh) | 73 | .if exists(/bin/ksh) | |
71 | TOOLS_PLATFORM.ksh?= /bin/ksh | 74 | TOOLS_PLATFORM.ksh?= /bin/ksh | |
72 | .endif | 75 | .endif | |
73 | TOOLS_PLATFORM.lex?= /usr/bin/lex | 76 | TOOLS_PLATFORM.lex?= /usr/bin/lex | |
74 | TOOLS_PLATFORM.ln?= /bin/ln | 77 | TOOLS_PLATFORM.ln?= /bin/ln | |
75 | TOOLS_PLATFORM.ls?= /bin/ls | 78 | TOOLS_PLATFORM.ls?= /bin/ls | |
76 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | 79 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | |
77 | TOOLS_PLATFORM.mail?= /usr/bin/mail | 80 | TOOLS_PLATFORM.mail?= /usr/bin/mail | |
78 | .if exists(/usr/bin/makeinfo) | 81 | .if exists(/usr/bin/makeinfo) | |
79 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | 82 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | |
80 | .endif | 83 | .endif | |
81 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | 84 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | |
82 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | 85 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | |
83 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | 86 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | |
84 | TOOLS_PLATFORM.mv?= /bin/mv | 87 | TOOLS_PLATFORM.mv?= /bin/mv | |
85 | TOOLS_PLATFORM.nice?= /usr/bin/nice | 88 | TOOLS_PLATFORM.nice?= /usr/bin/nice | |
86 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | 89 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | |
87 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | 90 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | |
88 | TOOLS_PLATFORM.pax?= /bin/pax | 91 | TOOLS_PLATFORM.pax?= /bin/pax | |
89 | # Don't use GNU patch | 92 | # Don't use GNU patch | |
90 | #TOOLS_PLATFORM.patch?= /usr/bin/patch | 93 | #TOOLS_PLATFORM.patch?= /usr/bin/patch | |
91 | TOOLS_PLATFORM.printf?= /usr/bin/printf | 94 | TOOLS_PLATFORM.printf?= /usr/bin/printf | |
92 | TOOLS_PLATFORM.pwd?= /bin/pwd | 95 | TOOLS_PLATFORM.pwd?= /bin/pwd | |
93 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | 96 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | |
94 | TOOLS_PLATFORM.rm?= /bin/rm | 97 | TOOLS_PLATFORM.rm?= /bin/rm | |
95 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | 98 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | |
96 | TOOLS_PLATFORM.sed?= /usr/bin/sed | 99 | TOOLS_PLATFORM.sed?= /usr/bin/sed | |
97 | TOOLS_PLATFORM.sh?= /bin/sh | 100 | TOOLS_PLATFORM.sh?= /bin/sh | |
98 | .if exists(/usr/bin/shlock) | 101 | .if exists(/usr/bin/shlock) | |
99 | TOOLS_PLATFORM.shlock?= /usr/bin/shlock | 102 | TOOLS_PLATFORM.shlock?= /usr/bin/shlock | |
100 | .endif | 103 | .endif | |
101 | TOOLS_PLATFORM.sleep?= /bin/sleep | 104 | TOOLS_PLATFORM.sleep?= /bin/sleep | |
102 | .if exists(/usr/bin/soelim) | 105 | .if exists(/usr/bin/soelim) | |
103 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | 106 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | |
104 | TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim | 107 | TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim | |
105 | .endif | 108 | .endif | |
106 | TOOLS_PLATFORM.sort?= /usr/bin/sort | 109 | TOOLS_PLATFORM.sort?= /usr/bin/sort | |
107 | TOOLS_PLATFORM.strip?= /usr/bin/strip | 110 | TOOLS_PLATFORM.strip?= /usr/bin/strip | |
108 | TOOLS_PLATFORM.tail?= /usr/bin/tail | 111 | TOOLS_PLATFORM.tail?= /usr/bin/tail | |
109 | TOOLS_PLATFORM.tar?= /usr/bin/tar | 112 | TOOLS_PLATFORM.tar?= /usr/bin/tar | |
110 | .if exists(/usr/bin/tbl) | 113 | .if exists(/usr/bin/tbl) | |
111 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | 114 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | |
112 | .endif | 115 | .endif | |
113 | TOOLS_PLATFORM.tclsh?= /usr/bin/tclsh | 116 | TOOLS_PLATFORM.tclsh?= /usr/bin/tclsh | |
114 | TOOLS_PLATFORM.tee?= /usr/bin/tee | 117 | TOOLS_PLATFORM.tee?= /usr/bin/tee | |
115 | TOOLS_PLATFORM.test?= test # shell builtin | 118 | TOOLS_PLATFORM.test?= test # shell builtin | |
116 | TOOLS_PLATFORM.touch?= /usr/bin/touch | 119 | TOOLS_PLATFORM.touch?= /usr/bin/touch | |
117 | TOOLS_PLATFORM.tr?= /usr/bin/tr | 120 | TOOLS_PLATFORM.tr?= /usr/bin/tr | |
118 | TOOLS_PLATFORM.true?= true # shell builtin | 121 | TOOLS_PLATFORM.true?= true # shell builtin | |
119 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | 122 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | |
120 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | 123 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | |
121 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | 124 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | |
122 | TOOLS_PLATFORM.wc?= /usr/bin/wc | 125 | TOOLS_PLATFORM.wc?= /usr/bin/wc | |
123 | .if exists(/usr/bin/wish) | 126 | .if exists(/usr/bin/wish) | |
124 | TOOLS_PLATFORM.wish?= /usr/bin/wish | 127 | TOOLS_PLATFORM.wish?= /usr/bin/wish | |
125 | .endif | 128 | .endif | |
126 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | 129 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | |
127 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | 130 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc |
@@ -1,104 +1,107 @@ | @@ -1,104 +1,107 @@ | |||
1 | # $NetBSD: tools.FreeBSD.mk,v 1.44 2017/07/22 18:10:25 maya Exp $ | 1 | # $NetBSD: tools.FreeBSD.mk,v 1.45 2018/10/17 08:30:43 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # System-supplied tools for the FreeBSD operating system. | 3 | # System-supplied tools for the FreeBSD operating system. | |
4 | 4 | |||
5 | TOOLS_PLATFORM.[?= [ # shell builtin | 5 | TOOLS_PLATFORM.[?= [ # shell builtin | |
6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | 6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | |
7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | 7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | |
8 | .if empty(MACHINE_PLATFORM:MFreeBSD-[0-4].*-*) && empty(MACHINE_PLATFORM:MFreeBSD-5.[0-3]-*) | 8 | .if empty(MACHINE_PLATFORM:MFreeBSD-[0-4].*-*) && empty(MACHINE_PLATFORM:MFreeBSD-5.[0-3]-*) | |
9 | TOOLS_PLATFORM.bsdtar?= /usr/bin/tar | 9 | TOOLS_PLATFORM.bsdtar?= /usr/bin/tar | |
10 | .endif | 10 | .endif | |
11 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | 11 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | |
12 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | 12 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | |
13 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | 13 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | |
14 | TOOLS_PLATFORM.cat?= /bin/cat | 14 | TOOLS_PLATFORM.cat?= /bin/cat | |
15 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | 15 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | |
16 | TOOLS_PLATFORM.chmod?= /bin/chmod | 16 | TOOLS_PLATFORM.chmod?= /bin/chmod | |
17 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | 17 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | |
18 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | 18 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | |
19 | TOOLS_PLATFORM.cp?= /bin/cp | 19 | TOOLS_PLATFORM.cp?= /bin/cp | |
20 | TOOLS_PLATFORM.csh?= /bin/csh | 20 | TOOLS_PLATFORM.csh?= /bin/csh | |
21 | TOOLS_PLATFORM.cut?= /usr/bin/cut | 21 | TOOLS_PLATFORM.cut?= /usr/bin/cut | |
22 | TOOLS_PLATFORM.date?= /bin/date | 22 | TOOLS_PLATFORM.date?= /bin/date | |
23 | TOOLS_PLATFORM.diff?= /usr/bin/diff | 23 | TOOLS_PLATFORM.diff?= /usr/bin/diff | |
24 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | 24 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | |
25 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | 25 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | |
26 | TOOLS_PLATFORM.echo?= echo # shell builtin | 26 | TOOLS_PLATFORM.echo?= echo # shell builtin | |
27 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | 27 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | |
28 | TOOLS_PLATFORM.env?= /usr/bin/env | 28 | TOOLS_PLATFORM.env?= /usr/bin/env | |
29 | TOOLS_PLATFORM.expr?= /bin/expr | 29 | TOOLS_PLATFORM.expr?= /bin/expr | |
30 | TOOLS_PLATFORM.false?= false # shell builtin | 30 | TOOLS_PLATFORM.false?= false # shell builtin | |
31 | TOOLS_PLATFORM.fetch?= /usr/bin/fetch | 31 | TOOLS_PLATFORM.fetch?= /usr/bin/fetch | |
32 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | 32 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | |
33 | TOOLS_PLATFORM.file?= /usr/bin/file | 33 | TOOLS_PLATFORM.file?= /usr/bin/file | |
34 | TOOLS_PLATFORM.find?= /usr/bin/find | 34 | TOOLS_PLATFORM.find?= /usr/bin/find | |
35 | TOOLS_PLATFORM.flex?= /usr/bin/lex | 35 | TOOLS_PLATFORM.flex?= /usr/bin/lex | |
36 | TOOLS_PLATFORM.gegrep?= /usr/bin/egrep | |||
37 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep | |||
38 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep | |||
36 | TOOLS_PLATFORM.grep?= /usr/bin/grep | 39 | TOOLS_PLATFORM.grep?= /usr/bin/grep | |
37 | TOOLS_PLATFORM.groff?= /usr/bin/groff | 40 | TOOLS_PLATFORM.groff?= /usr/bin/groff | |
38 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | 41 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | |
39 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | 42 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | |
40 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | 43 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | |
41 | TOOLS_PLATFORM.head?= /usr/bin/head | 44 | TOOLS_PLATFORM.head?= /usr/bin/head | |
42 | TOOLS_PLATFORM.hostname?= /bin/hostname | 45 | TOOLS_PLATFORM.hostname?= /bin/hostname | |
43 | TOOLS_PLATFORM.id?= /usr/bin/id | 46 | TOOLS_PLATFORM.id?= /usr/bin/id | |
44 | TOOLS_PLATFORM.ident?= /usr/bin/ident | 47 | TOOLS_PLATFORM.ident?= /usr/bin/ident | |
45 | TOOLS_PLATFORM.install?= /usr/bin/install | 48 | TOOLS_PLATFORM.install?= /usr/bin/install | |
46 | .if exists(/usr/bin/install-info) | 49 | .if exists(/usr/bin/install-info) | |
47 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | 50 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | |
48 | .endif | 51 | .endif | |
49 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | 52 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | |
50 | TOOLS_PLATFORM.lex?= /usr/bin/lex | 53 | TOOLS_PLATFORM.lex?= /usr/bin/lex | |
51 | TOOLS_PLATFORM.ln?= /bin/ln | 54 | TOOLS_PLATFORM.ln?= /bin/ln | |
52 | TOOLS_PLATFORM.ls?= /bin/ls | 55 | TOOLS_PLATFORM.ls?= /bin/ls | |
53 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | 56 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | |
54 | TOOLS_PLATFORM.mail?= /usr/bin/mail | 57 | TOOLS_PLATFORM.mail?= /usr/bin/mail | |
55 | .if exists(/usr/bin/makeinfo) | 58 | .if exists(/usr/bin/makeinfo) | |
56 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | 59 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | |
57 | .endif | 60 | .endif | |
58 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | 61 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | |
59 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | 62 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | |
60 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | 63 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | |
61 | TOOLS_PLATFORM.mv?= /bin/mv | 64 | TOOLS_PLATFORM.mv?= /bin/mv | |
62 | TOOLS_PLATFORM.nice?= /usr/bin/nice | 65 | TOOLS_PLATFORM.nice?= /usr/bin/nice | |
63 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | 66 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | |
64 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | 67 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | |
65 | # Don't use GNU patch | 68 | # Don't use GNU patch | |
66 | #TOOLS_PLATFORM.patch?= /usr/bin/patch | 69 | #TOOLS_PLATFORM.patch?= /usr/bin/patch | |
67 | TOOLS_PLATFORM.pax?= /bin/pax | 70 | TOOLS_PLATFORM.pax?= /bin/pax | |
68 | TOOLS_PLATFORM.printf?= /usr/bin/printf | 71 | TOOLS_PLATFORM.printf?= /usr/bin/printf | |
69 | TOOLS_PLATFORM.pwd?= /bin/pwd | 72 | TOOLS_PLATFORM.pwd?= /bin/pwd | |
70 | TOOLS_PLATFORM.readelf?= /usr/bin/readelf | 73 | TOOLS_PLATFORM.readelf?= /usr/bin/readelf | |
71 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | 74 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | |
72 | TOOLS_PLATFORM.rm?= /bin/rm | 75 | TOOLS_PLATFORM.rm?= /bin/rm | |
73 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | 76 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | |
74 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | 77 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | |
75 | TOOLS_PLATFORM.sed?= /usr/bin/sed | 78 | TOOLS_PLATFORM.sed?= /usr/bin/sed | |
76 | TOOLS_PLATFORM.sh?= /bin/sh | 79 | TOOLS_PLATFORM.sh?= /bin/sh | |
77 | TOOLS_PLATFORM.sleep?= /bin/sleep | 80 | TOOLS_PLATFORM.sleep?= /bin/sleep | |
78 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | 81 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | |
79 | TOOLS_PLATFORM.sort?= /usr/bin/sort | 82 | TOOLS_PLATFORM.sort?= /usr/bin/sort | |
80 | TOOLS_PLATFORM.strip?= /usr/bin/strip | 83 | TOOLS_PLATFORM.strip?= /usr/bin/strip | |
81 | TOOLS_PLATFORM.tail?= /usr/bin/tail | 84 | TOOLS_PLATFORM.tail?= /usr/bin/tail | |
82 | TOOLS_PLATFORM.tar?= /usr/bin/tar | 85 | TOOLS_PLATFORM.tar?= /usr/bin/tar | |
83 | .if exists(/usr/bin/tbl) | 86 | .if exists(/usr/bin/tbl) | |
84 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | 87 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | |
85 | .endif | 88 | .endif | |
86 | TOOLS_PLATFORM.tee?= /usr/bin/tee | 89 | TOOLS_PLATFORM.tee?= /usr/bin/tee | |
87 | TOOLS_PLATFORM.test?= test # shell builtin | 90 | TOOLS_PLATFORM.test?= test # shell builtin | |
88 | TOOLS_PLATFORM.touch?= /usr/bin/touch | 91 | TOOLS_PLATFORM.touch?= /usr/bin/touch | |
89 | TOOLS_PLATFORM.tr?= /usr/bin/tr | 92 | TOOLS_PLATFORM.tr?= /usr/bin/tr | |
90 | TOOLS_PLATFORM.true?= true # shell builtin | 93 | TOOLS_PLATFORM.true?= true # shell builtin | |
91 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | 94 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | |
92 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | 95 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | |
93 | .if exists(/usr/bin/unzip) | 96 | .if exists(/usr/bin/unzip) | |
94 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | 97 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | |
95 | .endif | 98 | .endif | |
96 | TOOLS_PLATFORM.wc?= /usr/bin/wc | 99 | TOOLS_PLATFORM.wc?= /usr/bin/wc | |
97 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | 100 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | |
98 | .if exists(/usr/bin/xz) | 101 | .if exists(/usr/bin/xz) | |
99 | TOOLS_PLATFORM.xz?= /usr/bin/xz | 102 | TOOLS_PLATFORM.xz?= /usr/bin/xz | |
100 | .endif | 103 | .endif | |
101 | .if exists(/usr/bin/xzcat) | 104 | .if exists(/usr/bin/xzcat) | |
102 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | 105 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | |
103 | .endif | 106 | .endif | |
104 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | 107 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc |
@@ -1,289 +1,295 @@ | @@ -1,289 +1,295 @@ | |||
1 | # $NetBSD: tools.Linux.mk,v 1.61 2017/07/10 12:32:30 joerg Exp $ | 1 | # $NetBSD: tools.Linux.mk,v 1.62 2018/10/17 08:30:43 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # System-supplied tools for the Linux operating system. | 3 | # System-supplied tools for the Linux operating system. | |
4 | 4 | |||
5 | TOOLS_PLATFORM.[?= [ # shell builtin | 5 | TOOLS_PLATFORM.[?= [ # shell builtin | |
6 | .if exists(/etc/debian_version) | 6 | .if exists(/etc/debian_version) | |
7 | TOOLS_PLATFORM.awk?= /usr/bin/awk | 7 | TOOLS_PLATFORM.awk?= /usr/bin/awk | |
8 | .else | 8 | .else | |
9 | TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk} | 9 | TOOLS_PLATFORM.awk?= ${TOOLS_PLATFORM.gawk} | |
10 | .endif | 10 | .endif | |
11 | .if exists(/usr/bin/autopoint) | 11 | .if exists(/usr/bin/autopoint) | |
12 | TOOLS_PLATFORM.autopoint?= /usr/bin/autopoint | 12 | TOOLS_PLATFORM.autopoint?= /usr/bin/autopoint | |
13 | .endif | 13 | .endif | |
14 | .if exists(/bin/basename) | 14 | .if exists(/bin/basename) | |
15 | TOOLS_PLATFORM.basename?= /bin/basename | 15 | TOOLS_PLATFORM.basename?= /bin/basename | |
16 | .elif exists(/usr/bin/basename) | 16 | .elif exists(/usr/bin/basename) | |
17 | TOOLS_PLATFORM.basename?= /usr/bin/basename | 17 | TOOLS_PLATFORM.basename?= /usr/bin/basename | |
18 | .endif | 18 | .endif | |
19 | TOOLS_PLATFORM.bash?= /bin/bash | 19 | TOOLS_PLATFORM.bash?= /bin/bash | |
20 | .if exists(/usr/bin/bison) | 20 | .if exists(/usr/bin/bison) | |
21 | TOOLS_PLATFORM.bison?= /usr/bin/bison | 21 | TOOLS_PLATFORM.bison?= /usr/bin/bison | |
22 | TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y | 22 | TOOLS_PLATFORM.bison-yacc?= /usr/bin/bison -y | |
23 | .endif | 23 | .endif | |
24 | .if exists(/usr/bin/bzcat) | 24 | .if exists(/usr/bin/bzcat) | |
25 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | 25 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | |
26 | .elif exists(/bin/bzcat) | 26 | .elif exists(/bin/bzcat) | |
27 | TOOLS_PLATFORM.bzcat?= /bin/bzcat | 27 | TOOLS_PLATFORM.bzcat?= /bin/bzcat | |
28 | .elif exists(/usr/bin/bzip2) | 28 | .elif exists(/usr/bin/bzip2) | |
29 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd | 29 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzip2 -cd | |
30 | .endif | 30 | .endif | |
31 | .if exists(/usr/bin/bzip2) | 31 | .if exists(/usr/bin/bzip2) | |
32 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | 32 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | |
33 | .elif exists(/bin/bzip2) | 33 | .elif exists(/bin/bzip2) | |
34 | TOOLS_PLATFORM.bzip2?= /bin/bzip2 | 34 | TOOLS_PLATFORM.bzip2?= /bin/bzip2 | |
35 | .endif | 35 | .endif | |
36 | TOOLS_PLATFORM.cat?= /bin/cat | 36 | TOOLS_PLATFORM.cat?= /bin/cat | |
37 | .if exists(/bin/chgrp) | 37 | .if exists(/bin/chgrp) | |
38 | TOOLS_PLATFORM.chgrp?= /bin/chgrp | 38 | TOOLS_PLATFORM.chgrp?= /bin/chgrp | |
39 | .elif exists(/usr/bin/chgrp) | 39 | .elif exists(/usr/bin/chgrp) | |
40 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | 40 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | |
41 | .endif | 41 | .endif | |
42 | TOOLS_PLATFORM.chmod?= /bin/chmod | 42 | TOOLS_PLATFORM.chmod?= /bin/chmod | |
43 | .if exists(/bin/chown) | 43 | .if exists(/bin/chown) | |
44 | TOOLS_PLATFORM.chown?= /bin/chown | 44 | TOOLS_PLATFORM.chown?= /bin/chown | |
45 | .elif exists(/usr/sbin/chown) | 45 | .elif exists(/usr/sbin/chown) | |
46 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | 46 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | |
47 | .endif | 47 | .endif | |
48 | .if exists(/bin/cmp) | 48 | .if exists(/bin/cmp) | |
49 | TOOLS_PLATFORM.cmp?= /bin/cmp | 49 | TOOLS_PLATFORM.cmp?= /bin/cmp | |
50 | .elif exists(/usr/bin/cmp) | 50 | .elif exists(/usr/bin/cmp) | |
51 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | 51 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | |
52 | .endif | 52 | .endif | |
53 | TOOLS_PLATFORM.cp?= /bin/cp | 53 | TOOLS_PLATFORM.cp?= /bin/cp | |
54 | .if exists(/bin/tcsh) | 54 | .if exists(/bin/tcsh) | |
55 | TOOLS_PLATFORM.csh?= /bin/tcsh | 55 | TOOLS_PLATFORM.csh?= /bin/tcsh | |
56 | .endif | 56 | .endif | |
57 | .if exists(/usr/bin/curl) | 57 | .if exists(/usr/bin/curl) | |
58 | TOOLS_PLATFORM.curl?= /usr/bin/curl | 58 | TOOLS_PLATFORM.curl?= /usr/bin/curl | |
59 | .endif | 59 | .endif | |
60 | .if exists(/bin/cut) | 60 | .if exists(/bin/cut) | |
61 | TOOLS_PLATFORM.cut?= /bin/cut | 61 | TOOLS_PLATFORM.cut?= /bin/cut | |
62 | .elif exists(/usr/bin/cut) | 62 | .elif exists(/usr/bin/cut) | |
63 | TOOLS_PLATFORM.cut?= /usr/bin/cut | 63 | TOOLS_PLATFORM.cut?= /usr/bin/cut | |
64 | .endif | 64 | .endif | |
65 | TOOLS_PLATFORM.date?= /bin/date | 65 | TOOLS_PLATFORM.date?= /bin/date | |
66 | .if exists(/bin/diff) | 66 | .if exists(/bin/diff) | |
67 | TOOLS_PLATFORM.diff?= /bin/diff | 67 | TOOLS_PLATFORM.diff?= /bin/diff | |
68 | .elif exists(/usr/bin/diff) | 68 | .elif exists(/usr/bin/diff) | |
69 | TOOLS_PLATFORM.diff?= /usr/bin/diff | 69 | TOOLS_PLATFORM.diff?= /usr/bin/diff | |
70 | .endif | 70 | .endif | |
71 | .if exists(/bin/diff3) | 71 | .if exists(/bin/diff3) | |
72 | TOOLS_PLATFORM.diff3?= /bin/diff3 | 72 | TOOLS_PLATFORM.diff3?= /bin/diff3 | |
73 | .elif exists(/usr/bin/diff3) | 73 | .elif exists(/usr/bin/diff3) | |
74 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | 74 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | |
75 | .endif | 75 | .endif | |
76 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | 76 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | |
77 | TOOLS_PLATFORM.echo?= echo # shell builtin | 77 | TOOLS_PLATFORM.echo?= echo # shell builtin | |
78 | .if exists(/bin/egrep) | 78 | .if exists(/bin/egrep) | |
79 | TOOLS_PLATFORM.egrep?= /bin/egrep | 79 | TOOLS_PLATFORM.egrep?= /bin/egrep | |
80 | TOOLS_PLATFORM.gegrep?= /bin/egrep | |||
80 | .elif exists(/usr/bin/egrep) | 81 | .elif exists(/usr/bin/egrep) | |
81 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | 82 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | |
83 | TOOLS_PLATFORM.gegrep?= /usr/bin/egrep | |||
82 | .endif | 84 | .endif | |
83 | TOOLS_PLATFORM.env?= /usr/bin/env | 85 | TOOLS_PLATFORM.env?= /usr/bin/env | |
84 | .if exists(/usr/bin/expr) | 86 | .if exists(/usr/bin/expr) | |
85 | TOOLS_PLATFORM.expr?= /usr/bin/expr | 87 | TOOLS_PLATFORM.expr?= /usr/bin/expr | |
86 | .elif exists(/bin/expr) | 88 | .elif exists(/bin/expr) | |
87 | TOOLS_PLATFORM.expr?= /bin/expr | 89 | TOOLS_PLATFORM.expr?= /bin/expr | |
88 | .endif | 90 | .endif | |
89 | TOOLS_PLATFORM.false?= false # shell builtin | 91 | TOOLS_PLATFORM.false?= false # shell builtin | |
90 | .if exists(/bin/fgrep) | 92 | .if exists(/bin/fgrep) | |
91 | TOOLS_PLATFORM.fgrep?= /bin/fgrep | 93 | TOOLS_PLATFORM.fgrep?= /bin/fgrep | |
94 | TOOLS_PLATFORM.gfgrep?= /bin/fgrep | |||
92 | .elif exists(/usr/bin/fgrep) | 95 | .elif exists(/usr/bin/fgrep) | |
93 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | 96 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | |
97 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep | |||
94 | .endif | 98 | .endif | |
95 | TOOLS_PLATFORM.file?= /usr/bin/file | 99 | TOOLS_PLATFORM.file?= /usr/bin/file | |
96 | TOOLS_PLATFORM.find?= /usr/bin/find | 100 | TOOLS_PLATFORM.find?= /usr/bin/find | |
97 | .if exists(/etc/debian_version) | 101 | .if exists(/etc/debian_version) | |
98 | . if exists(/usr/bin/gawk) | 102 | . if exists(/usr/bin/gawk) | |
99 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk | 103 | TOOLS_PLATFORM.gawk?= /usr/bin/gawk | |
100 | . endif | 104 | . endif | |
101 | .else | 105 | .else | |
102 | . if exists(/bin/awk) | 106 | . if exists(/bin/awk) | |
103 | TOOLS_PLATFORM.gawk?= /bin/awk | 107 | TOOLS_PLATFORM.gawk?= /bin/awk | |
104 | . else | 108 | . else | |
105 | TOOLS_PLATFORM.gawk?= /usr/bin/awk | 109 | TOOLS_PLATFORM.gawk?= /usr/bin/awk | |
106 | . endif | 110 | . endif | |
107 | .endif | 111 | .endif | |
108 | .if exists(/usr/bin/gettext) | 112 | .if exists(/usr/bin/gettext) | |
109 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext | 113 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext | |
110 | .endif | 114 | .endif | |
111 | .if exists(/usr/bin/m4) | 115 | .if exists(/usr/bin/m4) | |
112 | TOOLS_PLATFORM.gm4?= /usr/bin/m4 | 116 | TOOLS_PLATFORM.gm4?= /usr/bin/m4 | |
113 | .endif | 117 | .endif | |
114 | .if exists(/usr/bin/make) | 118 | .if exists(/usr/bin/make) | |
115 | TOOLS_PLATFORM.gmake?= /usr/bin/make | 119 | TOOLS_PLATFORM.gmake?= /usr/bin/make | |
116 | .endif | 120 | .endif | |
117 | .if exists(/bin/grep) | 121 | .if exists(/bin/grep) | |
118 | TOOLS_PLATFORM.grep?= /bin/grep | 122 | TOOLS_PLATFORM.grep?= /bin/grep | |
123 | TOOLS_PLATFORM.ggrep?= /bin/grep | |||
119 | .elif exists(/usr/bin/grep) | 124 | .elif exists(/usr/bin/grep) | |
120 | TOOLS_PLATFORM.grep?= /usr/bin/grep | 125 | TOOLS_PLATFORM.grep?= /usr/bin/grep | |
126 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep | |||
121 | .endif | 127 | .endif | |
122 | .if exists(/usr/bin/groff) | 128 | .if exists(/usr/bin/groff) | |
123 | TOOLS_PLATFORM.groff?= /usr/bin/groff | 129 | TOOLS_PLATFORM.groff?= /usr/bin/groff | |
124 | .endif | 130 | .endif | |
125 | .if exists(/bin/sed) | 131 | .if exists(/bin/sed) | |
126 | TOOLS_PLATFORM.gsed?= /bin/sed | 132 | TOOLS_PLATFORM.gsed?= /bin/sed | |
127 | .elif exists(/usr/bin/sed) | 133 | .elif exists(/usr/bin/sed) | |
128 | TOOLS_PLATFORM.gsed?= /usr/bin/sed | 134 | TOOLS_PLATFORM.gsed?= /usr/bin/sed | |
129 | .endif | 135 | .endif | |
130 | .if exists(/usr/bin/soelim) | 136 | .if exists(/usr/bin/soelim) | |
131 | TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim | 137 | TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim | |
132 | .endif | 138 | .endif | |
133 | .if exists(/bin/tar) | 139 | .if exists(/bin/tar) | |
134 | TOOLS_PLATFORM.gtar?= /bin/tar | 140 | TOOLS_PLATFORM.gtar?= /bin/tar | |
135 | .elif exists(/usr/bin/tar) | 141 | .elif exists(/usr/bin/tar) | |
136 | TOOLS_PLATFORM.gtar?= /usr/bin/tar | 142 | TOOLS_PLATFORM.gtar?= /usr/bin/tar | |
137 | .endif | 143 | .endif | |
138 | .if exists(/bin/gunzip) | 144 | .if exists(/bin/gunzip) | |
139 | TOOLS_PLATFORM.gunzip?= /bin/gunzip -f | 145 | TOOLS_PLATFORM.gunzip?= /bin/gunzip -f | |
140 | .elif exists(/usr/bin/gunzip) | 146 | .elif exists(/usr/bin/gunzip) | |
141 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | 147 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | |
142 | .endif | 148 | .endif | |
143 | .if exists(/bin/zcat) | 149 | .if exists(/bin/zcat) | |
144 | TOOLS_PLATFORM.gzcat?= /bin/zcat | 150 | TOOLS_PLATFORM.gzcat?= /bin/zcat | |
145 | .elif exists(/usr/bin/zcat) | 151 | .elif exists(/usr/bin/zcat) | |
146 | TOOLS_PLATFORM.gzcat?= /usr/bin/zcat | 152 | TOOLS_PLATFORM.gzcat?= /usr/bin/zcat | |
147 | .endif | 153 | .endif | |
148 | .if exists(/bin/gzip) | 154 | .if exists(/bin/gzip) | |
149 | TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP} | 155 | TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP} | |
150 | .elif exists(/usr/bin/gzip) | 156 | .elif exists(/usr/bin/gzip) | |
151 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | 157 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | |
152 | .endif | 158 | .endif | |
153 | .if exists(/bin/head) | 159 | .if exists(/bin/head) | |
154 | TOOLS_PLATFORM.head?= /bin/head | 160 | TOOLS_PLATFORM.head?= /bin/head | |
155 | .elif exists(/usr/bin/head) | 161 | .elif exists(/usr/bin/head) | |
156 | TOOLS_PLATFORM.head?= /usr/bin/head | 162 | TOOLS_PLATFORM.head?= /usr/bin/head | |
157 | .endif | 163 | .endif | |
158 | TOOLS_PLATFORM.hostname?= /bin/hostname | 164 | TOOLS_PLATFORM.hostname?= /bin/hostname | |
159 | .if exists(/bin/id) | 165 | .if exists(/bin/id) | |
160 | TOOLS_PLATFORM.id?= /bin/id | 166 | TOOLS_PLATFORM.id?= /bin/id | |
161 | .elif exists(/usr/bin/id) | 167 | .elif exists(/usr/bin/id) | |
162 | TOOLS_PLATFORM.id?= /usr/bin/id | 168 | TOOLS_PLATFORM.id?= /usr/bin/id | |
163 | .endif | 169 | .endif | |
164 | .if exists(/usr/bin/ident) | 170 | .if exists(/usr/bin/ident) | |
165 | TOOLS_PLATFORM.ident?= /usr/bin/ident | 171 | TOOLS_PLATFORM.ident?= /usr/bin/ident | |
166 | .endif | 172 | .endif | |
167 | .if exists(/bin/install) | 173 | .if exists(/bin/install) | |
168 | TOOLS_PLATFORM.install?= /bin/install | 174 | TOOLS_PLATFORM.install?= /bin/install | |
169 | .else | 175 | .else | |
170 | TOOLS_PLATFORM.install?= /usr/bin/install | 176 | TOOLS_PLATFORM.install?= /usr/bin/install | |
171 | .endif | 177 | .endif | |
172 | .if exists(/sbin/install-info) | 178 | .if exists(/sbin/install-info) | |
173 | TOOLS_PLATFORM.install-info?= /sbin/install-info | 179 | TOOLS_PLATFORM.install-info?= /sbin/install-info | |
174 | .elif exists(/usr/sbin/install-info) | 180 | .elif exists(/usr/sbin/install-info) | |
175 | TOOLS_PLATFORM.install-info?= /usr/sbin/install-info | 181 | TOOLS_PLATFORM.install-info?= /usr/sbin/install-info | |
176 | .elif exists(/usr/bin/install-info) | 182 | .elif exists(/usr/bin/install-info) | |
177 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | 183 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | |
178 | .endif | 184 | .endif | |
179 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | 185 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | |
180 | TOOLS_PLATFORM.ln?= /bin/ln | 186 | TOOLS_PLATFORM.ln?= /bin/ln | |
181 | TOOLS_PLATFORM.ls?= /bin/ls | 187 | TOOLS_PLATFORM.ls?= /bin/ls | |
182 | TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4} | 188 | TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4} | |
183 | .if exists(/bin/mail) | 189 | .if exists(/bin/mail) | |
184 | TOOLS_PLATFORM.mail?= /bin/mail # RH, Mandrake | 190 | TOOLS_PLATFORM.mail?= /bin/mail # RH, Mandrake | |
185 | .elif exists(/usr/bin/mail) | 191 | .elif exists(/usr/bin/mail) | |
186 | TOOLS_PLATFORM.mail?= /usr/bin/mail # Debian, Slackware, SuSE | 192 | TOOLS_PLATFORM.mail?= /usr/bin/mail # Debian, Slackware, SuSE | |
187 | .endif | 193 | .endif | |
188 | .if exists(/usr/bin/makeinfo) | 194 | .if exists(/usr/bin/makeinfo) | |
189 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | 195 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | |
190 | .endif | 196 | .endif | |
191 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | 197 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | |
192 | .if exists(/usr/bin/mktemp) | 198 | .if exists(/usr/bin/mktemp) | |
193 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | 199 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | |
194 | .elif exists(/bin/mktemp) | 200 | .elif exists(/bin/mktemp) | |
195 | TOOLS_PLATFORM.mktemp?= /bin/mktemp | 201 | TOOLS_PLATFORM.mktemp?= /bin/mktemp | |
196 | .endif | 202 | .endif | |
197 | .if exists(/usr/bin/msgconv) | 203 | .if exists(/usr/bin/msgconv) | |
198 | TOOLS_PLATFORM.msgconv?= /usr/bin/msgconv | 204 | TOOLS_PLATFORM.msgconv?= /usr/bin/msgconv | |
199 | .endif | 205 | .endif | |
200 | .if exists(/usr/bin/msgfmt) | 206 | .if exists(/usr/bin/msgfmt) | |
201 | TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt | 207 | TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt | |
202 | .endif | 208 | .endif | |
203 | .if exists(/usr/bin/msgmerge) | 209 | .if exists(/usr/bin/msgmerge) | |
204 | TOOLS_PLATFORM.msgmerge?= /usr/bin/msgmerge | 210 | TOOLS_PLATFORM.msgmerge?= /usr/bin/msgmerge | |
205 | .endif | 211 | .endif | |
206 | TOOLS_PLATFORM.mv?= /bin/mv | 212 | TOOLS_PLATFORM.mv?= /bin/mv | |
207 | .if exists(/bin/nice) | 213 | .if exists(/bin/nice) | |
208 | TOOLS_PLATFORM.nice?= /bin/nice | 214 | TOOLS_PLATFORM.nice?= /bin/nice | |
209 | .elif exists(/usr/bin/nice) | 215 | .elif exists(/usr/bin/nice) | |
210 | TOOLS_PLATFORM.nice?= /usr/bin/nice | 216 | TOOLS_PLATFORM.nice?= /usr/bin/nice | |
211 | .endif | 217 | .endif | |
212 | .if exists(/usr/bin/nroff) | 218 | .if exists(/usr/bin/nroff) | |
213 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | 219 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | |
214 | .endif | 220 | .endif | |
215 | .if exists(/usr/bin/openssl) | 221 | .if exists(/usr/bin/openssl) | |
216 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | 222 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | |
217 | .endif | 223 | .endif | |
218 | # Don't use GNU patch | 224 | # Don't use GNU patch | |
219 | #TOOLS_PLATFORM.patch?= /usr/bin/patch | 225 | #TOOLS_PLATFORM.patch?= /usr/bin/patch | |
220 | .if exists(/usr/bin/printf) | 226 | .if exists(/usr/bin/printf) | |
221 | TOOLS_PLATFORM.printf?= /usr/bin/printf | 227 | TOOLS_PLATFORM.printf?= /usr/bin/printf | |
222 | .endif | 228 | .endif | |
223 | TOOLS_PLATFORM.pwd?= /bin/pwd | 229 | TOOLS_PLATFORM.pwd?= /bin/pwd | |
224 | TOOLS_PLATFORM.readlink?= /bin/readlink | 230 | TOOLS_PLATFORM.readlink?= /bin/readlink | |
225 | TOOLS_PLATFORM.rm?= /bin/rm | 231 | TOOLS_PLATFORM.rm?= /bin/rm | |
226 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | 232 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | |
227 | .if exists(/bin/sdiff) | 233 | .if exists(/bin/sdiff) | |
228 | TOOLS_PLATFORM.sdiff?= /bin/sdiff | 234 | TOOLS_PLATFORM.sdiff?= /bin/sdiff | |
229 | .elif exists(/usr/bin/sdiff) | 235 | .elif exists(/usr/bin/sdiff) | |
230 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | 236 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | |
231 | .endif | 237 | .endif | |
232 | TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed} | 238 | TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed} | |
233 | TOOLS_PLATFORM.sh?= /bin/sh | 239 | TOOLS_PLATFORM.sh?= /bin/sh | |
234 | .if exists(/usr/bin/sleep) | 240 | .if exists(/usr/bin/sleep) | |
235 | TOOLS_PLATFORM.sleep?= /usr/bin/sleep | 241 | TOOLS_PLATFORM.sleep?= /usr/bin/sleep | |
236 | .else | 242 | .else | |
237 | TOOLS_PLATFORM.sleep?= /bin/sleep | 243 | TOOLS_PLATFORM.sleep?= /bin/sleep | |
238 | .endif | 244 | .endif | |
239 | .if exists(/usr/bin/soelim) | 245 | .if exists(/usr/bin/soelim) | |
240 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | 246 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | |
241 | .endif | 247 | .endif | |
242 | .if exists(/bin/sort) | 248 | .if exists(/bin/sort) | |
243 | TOOLS_PLATFORM.sort?= /bin/sort | 249 | TOOLS_PLATFORM.sort?= /bin/sort | |
244 | .elif exists(/usr/bin/sort) | 250 | .elif exists(/usr/bin/sort) | |
245 | TOOLS_PLATFORM.sort?= /usr/bin/sort | 251 | TOOLS_PLATFORM.sort?= /usr/bin/sort | |
246 | .endif | 252 | .endif | |
247 | TOOLS_PLATFORM.strip?= /usr/bin/strip | 253 | TOOLS_PLATFORM.strip?= /usr/bin/strip | |
248 | TOOLS_PLATFORM.tail?= /usr/bin/tail | 254 | TOOLS_PLATFORM.tail?= /usr/bin/tail | |
249 | TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar} | 255 | TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar} | |
250 | .if exists(/usr/bin/tbl) | 256 | .if exists(/usr/bin/tbl) | |
251 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | 257 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | |
252 | .endif | 258 | .endif | |
253 | TOOLS_PLATFORM.tee?= /usr/bin/tee | 259 | TOOLS_PLATFORM.tee?= /usr/bin/tee | |
254 | TOOLS_PLATFORM.test?= test # shell builtin | 260 | TOOLS_PLATFORM.test?= test # shell builtin | |
255 | .if exists(/bin/touch) | 261 | .if exists(/bin/touch) | |
256 | TOOLS_PLATFORM.touch?= /bin/touch | 262 | TOOLS_PLATFORM.touch?= /bin/touch | |
257 | .elif exists(/usr/bin/touch) | 263 | .elif exists(/usr/bin/touch) | |
258 | TOOLS_PLATFORM.touch?= /usr/bin/touch | 264 | TOOLS_PLATFORM.touch?= /usr/bin/touch | |
259 | .endif | 265 | .endif | |
260 | TOOLS_PLATFORM.tr?= /usr/bin/tr | 266 | TOOLS_PLATFORM.tr?= /usr/bin/tr | |
261 | TOOLS_PLATFORM.true?= true # shell builtin | 267 | TOOLS_PLATFORM.true?= true # shell builtin | |
262 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | 268 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | |
263 | .if exists(/bin/uniq) | 269 | .if exists(/bin/uniq) | |
264 | TOOLS_PLATFORM.uniq?= /bin/uniq | 270 | TOOLS_PLATFORM.uniq?= /bin/uniq | |
265 | .elif exists(/usr/bin/uniq) | 271 | .elif exists(/usr/bin/uniq) | |
266 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | 272 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | |
267 | .endif | 273 | .endif | |
268 | .if exists(/bin/wc) | 274 | .if exists(/bin/wc) | |
269 | TOOLS_PLATFORM.wc?= /bin/wc | 275 | TOOLS_PLATFORM.wc?= /bin/wc | |
270 | .elif exists(/usr/bin/wc) | 276 | .elif exists(/usr/bin/wc) | |
271 | TOOLS_PLATFORM.wc?= /usr/bin/wc | 277 | TOOLS_PLATFORM.wc?= /usr/bin/wc | |
272 | .endif | 278 | .endif | |
273 | .if exists(/usr/bin/wget) | 279 | .if exists(/usr/bin/wget) | |
274 | TOOLS_PLATFORM.wget?= /usr/bin/wget | 280 | TOOLS_PLATFORM.wget?= /usr/bin/wget | |
275 | .endif | 281 | .endif | |
276 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs -r | 282 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs -r | |
277 | .if exists(/usr/bin/xgettext) | 283 | .if exists(/usr/bin/xgettext) | |
278 | TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext | 284 | TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext | |
279 | .endif | 285 | .endif | |
280 | .if exists(/usr/bin/yacc) | 286 | .if exists(/usr/bin/yacc) | |
281 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | 287 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | |
282 | .endif | 288 | .endif | |
283 | .if exists(/usr/bin/xz) | 289 | .if exists(/usr/bin/xz) | |
284 | TOOLS_PLATFORM.xz?= /usr/bin/xz | 290 | TOOLS_PLATFORM.xz?= /usr/bin/xz | |
285 | .endif | 291 | .endif | |
286 | .if exists(/usr/bin/xzcat) | 292 | .if exists(/usr/bin/xzcat) | |
287 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | 293 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | |
288 | .endif | 294 | .endif | |
289 | 295 |
@@ -1,169 +1,172 @@ | @@ -1,169 +1,172 @@ | |||
1 | # $NetBSD: tools.NetBSD.mk,v 1.61 2017/04/21 16:03:10 maya Exp $ | 1 | # $NetBSD: tools.NetBSD.mk,v 1.62 2018/10/17 08:30:43 jperkin Exp $ | |
2 | # | 2 | # | |
3 | # System-supplied tools for the NetBSD operating system. | 3 | # System-supplied tools for the NetBSD operating system. | |
4 | 4 | |||
5 | TOOLS_PLATFORM.[?= [ # shell builtin | 5 | TOOLS_PLATFORM.[?= [ # shell builtin | |
6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | 6 | TOOLS_PLATFORM.awk?= /usr/bin/awk | |
7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | 7 | TOOLS_PLATFORM.basename?= /usr/bin/basename | |
8 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | 8 | TOOLS_PLATFORM.byacc?= /usr/bin/yacc | |
9 | .if exists(/usr/bin/bzcat) | 9 | .if exists(/usr/bin/bzcat) | |
10 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | 10 | TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat | |
11 | .endif | 11 | .endif | |
12 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | 12 | TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 | |
13 | TOOLS_PLATFORM.cat?= /bin/cat | 13 | TOOLS_PLATFORM.cat?= /bin/cat | |
14 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | 14 | TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp | |
15 | TOOLS_PLATFORM.chmod?= /bin/chmod | 15 | TOOLS_PLATFORM.chmod?= /bin/chmod | |
16 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | 16 | TOOLS_PLATFORM.chown?= /usr/sbin/chown | |
17 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | 17 | TOOLS_PLATFORM.cmp?= /usr/bin/cmp | |
18 | TOOLS_PLATFORM.cp?= /bin/cp | 18 | TOOLS_PLATFORM.cp?= /bin/cp | |
19 | TOOLS_PLATFORM.csh?= /bin/csh | 19 | TOOLS_PLATFORM.csh?= /bin/csh | |
20 | .if exists(/usr/bin/ctfconvert) | 20 | .if exists(/usr/bin/ctfconvert) | |
21 | TOOLS_PLATFORM.ctfconvert?= /usr/bin/ctfconvert | 21 | TOOLS_PLATFORM.ctfconvert?= /usr/bin/ctfconvert | |
22 | .endif | 22 | .endif | |
23 | .if exists(/usr/bin/ctfmerge) | 23 | .if exists(/usr/bin/ctfmerge) | |
24 | TOOLS_PLATFORM.ctfmerge?= /usr/bin/ctfmerge | 24 | TOOLS_PLATFORM.ctfmerge?= /usr/bin/ctfmerge | |
25 | .endif | 25 | .endif | |
26 | TOOLS_PLATFORM.cut?= /usr/bin/cut | 26 | TOOLS_PLATFORM.cut?= /usr/bin/cut | |
27 | TOOLS_PLATFORM.date?= /bin/date | 27 | TOOLS_PLATFORM.date?= /bin/date | |
28 | TOOLS_PLATFORM.diff?= /usr/bin/diff | 28 | TOOLS_PLATFORM.diff?= /usr/bin/diff | |
29 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | 29 | TOOLS_PLATFORM.diff3?= /usr/bin/diff3 | |
30 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | 30 | TOOLS_PLATFORM.dirname?= /usr/bin/dirname | |
31 | TOOLS_PLATFORM.echo?= echo # shell builtin | 31 | TOOLS_PLATFORM.echo?= echo # shell builtin | |
32 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | 32 | TOOLS_PLATFORM.egrep?= /usr/bin/egrep | |
33 | TOOLS_PLATFORM.env?= /usr/bin/env | 33 | TOOLS_PLATFORM.env?= /usr/bin/env | |
34 | TOOLS_PLATFORM.expr?= /bin/expr | 34 | TOOLS_PLATFORM.expr?= /bin/expr | |
35 | TOOLS_PLATFORM.false?= false # shell builtin | 35 | TOOLS_PLATFORM.false?= false # shell builtin | |
36 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | 36 | TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep | |
37 | TOOLS_PLATFORM.file?= /usr/bin/file | 37 | TOOLS_PLATFORM.file?= /usr/bin/file | |
38 | TOOLS_PLATFORM.find?= /usr/bin/find | 38 | TOOLS_PLATFORM.find?= /usr/bin/find | |
39 | TOOLS_PLATFORM.flex?= /usr/bin/lex | 39 | TOOLS_PLATFORM.flex?= /usr/bin/lex | |
40 | TOOLS_PLATFORM.ftp?= /usr/bin/ftp | 40 | TOOLS_PLATFORM.ftp?= /usr/bin/ftp | |
41 | .if exists(/usr/bin/gettext) | 41 | .if exists(/usr/bin/gettext) | |
42 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext | 42 | TOOLS_PLATFORM.gettext?= /usr/bin/gettext | |
43 | .endif | 43 | .endif | |
44 | TOOLS_PLATFORM.gegrep?= /usr/bin/egrep | |||
45 | TOOLS_PLATFORM.gfgrep?= /usr/bin/fgrep | |||
46 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep | |||
44 | TOOLS_PLATFORM.grep?= /usr/bin/grep | 47 | TOOLS_PLATFORM.grep?= /usr/bin/grep | |
45 | TOOLS_PLATFORM.groff?= /usr/bin/groff | 48 | TOOLS_PLATFORM.groff?= /usr/bin/groff | |
46 | TOOLS_PLATFORM.gsoelim?= ${TOOLS_PLATFORM.soelim} # GNUish | 49 | TOOLS_PLATFORM.gsoelim?= ${TOOLS_PLATFORM.soelim} # GNUish | |
47 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | 50 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | |
48 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | 51 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | |
49 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | 52 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | |
50 | TOOLS_PLATFORM.head?= /usr/bin/head | 53 | TOOLS_PLATFORM.head?= /usr/bin/head | |
51 | TOOLS_PLATFORM.hostname?= /bin/hostname | 54 | TOOLS_PLATFORM.hostname?= /bin/hostname | |
52 | TOOLS_PLATFORM.id?= /usr/bin/id | 55 | TOOLS_PLATFORM.id?= /usr/bin/id | |
53 | TOOLS_PLATFORM.ident?= /usr/bin/ident | 56 | TOOLS_PLATFORM.ident?= /usr/bin/ident | |
54 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | 57 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | |
55 | TOOLS_PLATFORM.install?= /usr/bin/install | 58 | TOOLS_PLATFORM.install?= /usr/bin/install | |
56 | .else | 59 | .else | |
57 | TOOLS_PLATFORM.install?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install | 60 | TOOLS_PLATFORM.install?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install | |
58 | .endif | 61 | .endif | |
59 | .if exists(/usr/bin/install-info) | 62 | .if exists(/usr/bin/install-info) | |
60 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | 63 | TOOLS_PLATFORM.install-info?= /usr/bin/install-info | |
61 | .endif | 64 | .endif | |
62 | .if exists(/sbin/ldconfig) && ${OBJECT_FMT} == "a.out" | 65 | .if exists(/sbin/ldconfig) && ${OBJECT_FMT} == "a.out" | |
63 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | 66 | TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | |
64 | .endif | 67 | .endif | |
65 | TOOLS_PLATFORM.ksh?= /bin/ksh | 68 | TOOLS_PLATFORM.ksh?= /bin/ksh | |
66 | TOOLS_PLATFORM.lex?= /usr/bin/lex | 69 | TOOLS_PLATFORM.lex?= /usr/bin/lex | |
67 | TOOLS_PLATFORM.ln?= /bin/ln | 70 | TOOLS_PLATFORM.ln?= /bin/ln | |
68 | TOOLS_PLATFORM.ls?= /bin/ls | 71 | TOOLS_PLATFORM.ls?= /bin/ls | |
69 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | 72 | TOOLS_PLATFORM.m4?= /usr/bin/m4 | |
70 | TOOLS_PLATFORM.mail?= /usr/bin/mail | 73 | TOOLS_PLATFORM.mail?= /usr/bin/mail | |
71 | .if exists(/usr/bin/makeinfo) | 74 | .if exists(/usr/bin/makeinfo) | |
72 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | 75 | TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo | |
73 | .endif | 76 | .endif | |
74 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | 77 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | |
75 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | 78 | TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp | |
76 | .if exists(/usr/bin/msgconv) | 79 | .if exists(/usr/bin/msgconv) | |
77 | TOOLS_PLATFORM.msgconv?= /usr/bin/msgconv | 80 | TOOLS_PLATFORM.msgconv?= /usr/bin/msgconv | |
78 | .endif | 81 | .endif | |
79 | .if exists(/usr/bin/msgfmt) | 82 | .if exists(/usr/bin/msgfmt) | |
80 | TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt | 83 | TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt | |
81 | .endif | 84 | .endif | |
82 | .if exists(/usr/bin/msgmerge) | 85 | .if exists(/usr/bin/msgmerge) | |
83 | TOOLS_PLATFORM.msgmerge?= /usr/bin/msgmerge | 86 | TOOLS_PLATFORM.msgmerge?= /usr/bin/msgmerge | |
84 | .endif | 87 | .endif | |
85 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | 88 | TOOLS_PLATFORM.mtree?= /usr/sbin/mtree | |
86 | TOOLS_PLATFORM.mv?= /bin/mv | 89 | TOOLS_PLATFORM.mv?= /bin/mv | |
87 | TOOLS_PLATFORM.nice?= /usr/bin/nice | 90 | TOOLS_PLATFORM.nice?= /usr/bin/nice | |
88 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | 91 | TOOLS_PLATFORM.nroff?= /usr/bin/nroff | |
89 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | 92 | TOOLS_PLATFORM.openssl?= /usr/bin/openssl | |
90 | TOOLS_PLATFORM.patch?= /usr/bin/patch | 93 | TOOLS_PLATFORM.patch?= /usr/bin/patch | |
91 | TOOLS_PLATFORM.pax?= /bin/pax | 94 | TOOLS_PLATFORM.pax?= /bin/pax | |
92 | .if exists(/usr/sbin/paxctl) | 95 | .if exists(/usr/sbin/paxctl) | |
93 | TOOLS_PLATFORM.paxctl?= /usr/sbin/paxctl | 96 | TOOLS_PLATFORM.paxctl?= /usr/sbin/paxctl | |
94 | .endif | 97 | .endif | |
95 | TOOLS_PLATFORM.printf?= /usr/bin/printf | 98 | TOOLS_PLATFORM.printf?= /usr/bin/printf | |
96 | TOOLS_PLATFORM.pwd?= /bin/pwd | 99 | TOOLS_PLATFORM.pwd?= /bin/pwd | |
97 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | 100 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | |
98 | TOOLS_PLATFORM.readelf?= /usr/bin/readelf | 101 | TOOLS_PLATFORM.readelf?= /usr/bin/readelf | |
99 | .else | 102 | .else | |
100 | TOOLS_PLATFORM.readelf?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf | 103 | TOOLS_PLATFORM.readelf?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-readelf | |
101 | .endif | 104 | .endif | |
102 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | 105 | TOOLS_PLATFORM.readlink?= /usr/bin/readlink | |
103 | TOOLS_PLATFORM.rm?= /bin/rm | 106 | TOOLS_PLATFORM.rm?= /bin/rm | |
104 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | 107 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | |
105 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | 108 | TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff | |
106 | TOOLS_PLATFORM.sed?= /usr/bin/sed | 109 | TOOLS_PLATFORM.sed?= /usr/bin/sed | |
107 | TOOLS_PLATFORM.sh?= /bin/sh | 110 | TOOLS_PLATFORM.sh?= /bin/sh | |
108 | TOOLS_PLATFORM.shlock?= /usr/bin/shlock | 111 | TOOLS_PLATFORM.shlock?= /usr/bin/shlock | |
109 | TOOLS_PLATFORM.sleep?= /bin/sleep | 112 | TOOLS_PLATFORM.sleep?= /bin/sleep | |
110 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | 113 | TOOLS_PLATFORM.soelim?= /usr/bin/soelim | |
111 | TOOLS_PLATFORM.sort?= /usr/bin/sort | 114 | TOOLS_PLATFORM.sort?= /usr/bin/sort | |
112 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | 115 | .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | |
113 | TOOLS_PLATFORM.strip?= /usr/bin/strip | 116 | TOOLS_PLATFORM.strip?= /usr/bin/strip | |
114 | .else | 117 | .else | |
115 | TOOLS_PLATFORM.strip?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip | 118 | TOOLS_PLATFORM.strip?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip | |
116 | .endif | 119 | .endif | |
117 | 120 | |||
118 | TOOLS_PLATFORM.tail?= /usr/bin/tail | 121 | TOOLS_PLATFORM.tail?= /usr/bin/tail | |
119 | .if exists(/bin/tar) | 122 | .if exists(/bin/tar) | |
120 | TOOLS_PLATFORM.tar?= /bin/tar | 123 | TOOLS_PLATFORM.tar?= /bin/tar | |
121 | .elif exists(/usr/bin/tar) | 124 | .elif exists(/usr/bin/tar) | |
122 | TOOLS_PLATFORM.tar?= /usr/bin/tar | 125 | TOOLS_PLATFORM.tar?= /usr/bin/tar | |
123 | .endif | 126 | .endif | |
124 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | 127 | TOOLS_PLATFORM.tbl?= /usr/bin/tbl | |
125 | TOOLS_PLATFORM.tee?= /usr/bin/tee | 128 | TOOLS_PLATFORM.tee?= /usr/bin/tee | |
126 | TOOLS_PLATFORM.test?= test # shell builtin | 129 | TOOLS_PLATFORM.test?= test # shell builtin | |
127 | TOOLS_PLATFORM.touch?= /usr/bin/touch | 130 | TOOLS_PLATFORM.touch?= /usr/bin/touch | |
128 | TOOLS_PLATFORM.tr?= /usr/bin/tr | 131 | TOOLS_PLATFORM.tr?= /usr/bin/tr | |
129 | TOOLS_PLATFORM.true?= true # shell builtin | 132 | TOOLS_PLATFORM.true?= true # shell builtin | |
130 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | 133 | TOOLS_PLATFORM.tsort?= /usr/bin/tsort | |
131 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | 134 | TOOLS_PLATFORM.uniq?= /usr/bin/uniq | |
132 | .if exists(/usr/bin/unzip) | 135 | .if exists(/usr/bin/unzip) | |
133 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | 136 | TOOLS_PLATFORM.unzip?= /usr/bin/unzip | |
134 | .endif | 137 | .endif | |
135 | TOOLS_PLATFORM.wc?= /usr/bin/wc | 138 | TOOLS_PLATFORM.wc?= /usr/bin/wc | |
136 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | 139 | TOOLS_PLATFORM.xargs?= /usr/bin/xargs | |
137 | .if exists(/usr/bin/xgettext) | 140 | .if exists(/usr/bin/xgettext) | |
138 | TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext | 141 | TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext | |
139 | .endif | 142 | .endif | |
140 | .if exists(/usr/bin/xz) | 143 | .if exists(/usr/bin/xz) | |
141 | TOOLS_PLATFORM.xz?= /usr/bin/xz | 144 | TOOLS_PLATFORM.xz?= /usr/bin/xz | |
142 | .endif | 145 | .endif | |
143 | .if exists(/usr/bin/xzcat) | 146 | .if exists(/usr/bin/xzcat) | |
144 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | 147 | TOOLS_PLATFORM.xzcat?= /usr/bin/xzcat | |
145 | .endif | 148 | .endif | |
146 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | 149 | TOOLS_PLATFORM.yacc?= /usr/bin/yacc | |
147 | 150 | |||
148 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | 151 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | |
149 | . for _t_ in ar as ld nm objcopy objdump ranlib readelf strip | 152 | . for _t_ in ar as ld nm objcopy objdump ranlib readelf strip | |
150 | TOOLS_PATH.${MACHINE_GNU_PLATFORM}-${_t_}?= \ | 153 | TOOLS_PATH.${MACHINE_GNU_PLATFORM}-${_t_}?= \ | |
151 | ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-${_t_} | 154 | ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-${_t_} | |
152 | TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-${_t_} | 155 | TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-${_t_} | |
153 | . endfor | 156 | . endfor | |
154 | 157 | |||
155 | TOOLS_PATH.ar?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar | 158 | TOOLS_PATH.ar?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar | |
156 | TOOLS_CREATE+= ar | 159 | TOOLS_CREATE+= ar | |
157 | TOOLS_PATH.ranlib?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib | 160 | TOOLS_PATH.ranlib?= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib | |
158 | TOOLS_CREATE+= ranlib | 161 | TOOLS_CREATE+= ranlib | |
159 | 162 | |||
160 | NATIVE_CC:= /usr/bin/cc -B /usr/libexec -B /usr/bin | 163 | NATIVE_CC:= /usr/bin/cc -B /usr/libexec -B /usr/bin | |
161 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | 164 | CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc | |
162 | 165 | |||
163 | NATIVE_CXX:= /usr/bin/c++ -B /usr/libexec -B /usr/bin | 166 | NATIVE_CXX:= /usr/bin/c++ -B /usr/libexec -B /usr/bin | |
164 | CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g++ | 167 | CXX= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g++ | |
165 | 168 | |||
166 | NATIVE_LD:= /usr/bin/ld | 169 | NATIVE_LD:= /usr/bin/ld | |
167 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld | 170 | LD= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld | |
168 | 171 | |||
169 | .endif | 172 | .endif |