| @@ -1,98 +1,115 @@ | | | @@ -1,98 +1,115 @@ |
1 | # $NetBSD: tools.Haiku.mk,v 1.7 2013/06/02 03:06:44 obache Exp $ | | 1 | # $NetBSD: tools.Haiku.mk,v 1.8 2013/06/02 06:51:08 obache Exp $ |
2 | # | | 2 | # |
3 | # System-supplied tools for the Haiku operating system. | | 3 | # System-supplied tools for the Haiku operating system. |
4 | | | 4 | |
5 | TOOLS_PLATFORM.[?= [ # shell builtin | | 5 | TOOLS_PLATFORM.[?= [ # shell builtin |
6 | TOOLS_PLATFORM.awk?= /bin/awk | | 6 | TOOLS_PLATFORM.awk?= /bin/awk |
7 | TOOLS_PLATFORM.basename?= /bin/basename | | 7 | TOOLS_PLATFORM.basename?= /bin/basename |
8 | TOOLS_PLATFORM.bash?= /bin/bash | | 8 | TOOLS_PLATFORM.bash?= /bin/bash |
| | | 9 | .if exists(/boot/common/bin/bison) |
9 | TOOLS_PLATFORM.bison?= /boot/common/bin/bison | | 10 | TOOLS_PLATFORM.bison?= /boot/common/bin/bison |
10 | TOOLS_PLATFORM.bison-yacc?= /boot/common/bin/bison -y | | 11 | TOOLS_PLATFORM.bison-yacc?= /boot/common/bin/bison -y |
| | | 12 | .endif |
| | | 13 | .if exists(/bin/bzip2) |
11 | TOOLS_PLATFORM.bzcat?= /bin/bzip2 -cd | | 14 | TOOLS_PLATFORM.bzcat?= /bin/bzip2 -cd |
12 | TOOLS_PLATFORM.bzip2?= /bin/bzip2 | | 15 | TOOLS_PLATFORM.bzip2?= /bin/bzip2 |
| | | 16 | .elif exists(/boot/common/bin/bzip2) |
| | | 17 | TOOLS_PLATFORM.bzcat?= /boot/common/bin/bzip2 -cd |
| | | 18 | TOOLS_PLATFORM.bzip2?= /boot/common/bin/bzip2 |
| | | 19 | .endif |
13 | TOOLS_PLATFORM.cat?= /bin/cat | | 20 | TOOLS_PLATFORM.cat?= /bin/cat |
14 | TOOLS_PLATFORM.chgrp?= /bin/chgrp | | 21 | TOOLS_PLATFORM.chgrp?= /bin/chgrp |
15 | TOOLS_PLATFORM.chmod?= /bin/chmod | | 22 | TOOLS_PLATFORM.chmod?= /bin/chmod |
16 | TOOLS_PLATFORM.chown?= /bin/chown | | 23 | TOOLS_PLATFORM.chown?= /bin/chown |
17 | TOOLS_PLATFORM.cmp?= /bin/cmp | | 24 | TOOLS_PLATFORM.cmp?= /bin/cmp |
18 | TOOLS_PLATFORM.cp?= /bin/cp | | 25 | TOOLS_PLATFORM.cp?= /bin/cp |
19 | TOOLS_PLATFORM.cut?= /bin/cut | | 26 | TOOLS_PLATFORM.cut?= /bin/cut |
20 | TOOLS_PLATFORM.date?= /bin/date | | 27 | TOOLS_PLATFORM.date?= /bin/date |
21 | TOOLS_PLATFORM.diff?= /bin/diff | | 28 | TOOLS_PLATFORM.diff?= /bin/diff |
22 | TOOLS_PLATFORM.diff3?= /bin/diff3 | | 29 | TOOLS_PLATFORM.diff3?= /bin/diff3 |
23 | TOOLS_PLATFORM.dirname?= /bin/dirname | | 30 | TOOLS_PLATFORM.dirname?= /bin/dirname |
24 | TOOLS_PLATFORM.echo?= echo # shell builtin | | 31 | TOOLS_PLATFORM.echo?= echo # shell builtin |
25 | TOOLS_PLATFORM.egrep?= /bin/egrep | | 32 | TOOLS_PLATFORM.egrep?= /bin/egrep |
26 | TOOLS_PLATFORM.env?= /bin/env | | 33 | TOOLS_PLATFORM.env?= /bin/env |
27 | TOOLS_PLATFORM.expr?= /bin/expr | | 34 | TOOLS_PLATFORM.expr?= /bin/expr |
28 | TOOLS_PLATFORM.false?= false # shell builtin | | 35 | TOOLS_PLATFORM.false?= false # shell builtin |
29 | TOOLS_PLATFORM.fgrep?= /bin/fgrep | | 36 | TOOLS_PLATFORM.fgrep?= /bin/fgrep |
30 | TOOLS_PLATFORM.find?= /bin/find | | 37 | TOOLS_PLATFORM.find?= /bin/find |
31 | TOOLS_PLATFORM.ftp?= /bin/ftp | | 38 | TOOLS_PLATFORM.ftp?= /bin/ftp |
32 | TOOLS_PLATFORM.gawk?= /bin/gawk | | 39 | TOOLS_PLATFORM.gawk?= /bin/gawk |
| | | 40 | .if exists(/boot/common/bin/m4) |
33 | TOOLS_PLATFORM.gm4?= /boot/common/bin/m4 | | 41 | TOOLS_PLATFORM.gm4?= /boot/common/bin/m4 |
| | | 42 | .endif |
34 | .if exists(/bin/make) | | 43 | .if exists(/bin/make) |
35 | TOOLS_PLATFORM.gmake?= /bin/make | | 44 | TOOLS_PLATFORM.gmake?= /bin/make |
36 | .elif exists(/boot/common/bin/make) | | 45 | .elif exists(/boot/common/bin/make) |
37 | TOOLS_PLATFORM.gmake?= /boot/common/bin/make | | 46 | TOOLS_PLATFORM.gmake?= /boot/common/bin/make |
38 | .endif | | 47 | .endif |
39 | TOOLS_PLATFORM.grep?= /bin/grep | | 48 | TOOLS_PLATFORM.grep?= /bin/grep |
40 | #TOOLS_PLATFORM.groff?= /usr/bin/groff | | 49 | #TOOLS_PLATFORM.groff?= /usr/bin/groff |
41 | .if exists(/bin/sed) | | 50 | .if exists(/bin/sed) |
42 | TOOLS_PLATFORM.gsed?= /bin/sed | | 51 | TOOLS_PLATFORM.gsed?= /bin/sed |
43 | .elif exists(/boot/common/bin/sed) | | 52 | .elif exists(/boot/common/bin/sed) |
44 | TOOLS_PLATFORM.gsed?= /boot/common/bin/sed | | 53 | TOOLS_PLATFORM.gsed?= /boot/common/bin/sed |
45 | .endif | | 54 | .endif |
46 | #TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim | | 55 | #TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim |
47 | .if exists(/bin/tar) | | 56 | .if exists(/bin/tar) |
48 | TOOLS_PLATFORM.gtar?= /bin/tar | | 57 | TOOLS_PLATFORM.gtar?= /bin/tar |
49 | .elif exists(/boot/common/bin/tar) | | 58 | .elif exists(/boot/common/bin/tar) |
50 | TOOLS_PLATFORM.gtar?= /boot/common/bin/tar | | 59 | TOOLS_PLATFORM.gtar?= /boot/common/bin/tar |
51 | .endif | | 60 | .endif |
52 | TOOLS_PLATFORM.gunzip?= /bin/gunzip -f | | 61 | TOOLS_PLATFORM.gunzip?= /bin/gunzip -f |
53 | TOOLS_PLATFORM.gzcat?= /bin/zcat | | 62 | TOOLS_PLATFORM.gzcat?= /bin/zcat |
54 | TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP} | | 63 | TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP} |
55 | TOOLS_PLATFORM.head?= /bin/head | | 64 | TOOLS_PLATFORM.head?= /bin/head |
56 | TOOLS_PLATFORM.hostname?= /bin/hostname | | 65 | TOOLS_PLATFORM.hostname?= /bin/hostname |
57 | TOOLS_PLATFORM.id?= /bin/id | | 66 | TOOLS_PLATFORM.id?= /bin/id |
58 | TOOLS_PLATFORM.ident?= /bin/ident | | 67 | TOOLS_PLATFORM.ident?= /bin/ident |
59 | TOOLS_PLATFORM.install?= /bin/install | | 68 | TOOLS_PLATFORM.install?= /bin/install |
| | | 69 | .if exists(/boot/common/bin/install-info) |
60 | TOOLS_PLATFORM.install-info?= /boot/common/bin/install-info | | 70 | TOOLS_PLATFORM.install-info?= /boot/common/bin/install-info |
| | | 71 | .endif |
61 | #TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig | | 72 | #TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig |
62 | # XXX: Haiku currently no support of hard link. | | 73 | # XXX: BFS currently no support of hard link. |
63 | TOOLS_PLATFORM.ln?= /bin/ln | | 74 | TOOLS_PLATFORM.ln?= /bin/ln |
64 | TOOLS_PLATFORM.ls?= /bin/ls | | 75 | TOOLS_PLATFORM.ls?= /bin/ls |
65 | .if exists(/boot/common/bin/lzcat) | | 76 | .if exists(/boot/common/bin/lzcat) |
66 | TOOLS_PLATFORM.lzcat?= /boot/common/bin/lzcat | | 77 | TOOLS_PLATFORM.lzcat?= /boot/common/bin/lzcat |
67 | .endif | | 78 | .endif |
68 | TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4} | | 79 | TOOLS_PLATFORM.m4?= ${TOOLS_PLATFORM.gm4} |
69 | #TOOLS_PLATFORM.mail?= /bin/mail | | 80 | #TOOLS_PLATFORM.mail?= /bin/mail |
| | | 81 | .if exists(/boot/common/bin/makeinfo) |
70 | TOOLS_PLATFORM.makeinfo?= /boot/common/bin/makeinfo | | 82 | TOOLS_PLATFORM.makeinfo?= /boot/common/bin/makeinfo |
| | | 83 | .endif |
71 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p | | 84 | TOOLS_PLATFORM.mkdir?= /bin/mkdir -p |
72 | .if exists(/bin/mktemp) | | 85 | .if exists(/bin/mktemp) |
73 | TOOLS_PLATFORM.mktemp?= /bin/mktemp | | 86 | TOOLS_PLATFORM.mktemp?= /bin/mktemp |
74 | .endif | | 87 | .endif |
75 | #TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt | | 88 | #TOOLS_PLATFORM.msgfmt?= /usr/bin/msgfmt |
76 | TOOLS_PLATFORM.mv?= /bin/mv | | 89 | TOOLS_PLATFORM.mv?= /bin/mv |
77 | #TOOLS_PLATFORM.nice?= /bin/nice | | 90 | #TOOLS_PLATFORM.nice?= /bin/nice |
78 | #TOOLS_PLATFORM.nroff?= /usr/bin/nroff | | 91 | #TOOLS_PLATFORM.nroff?= /usr/bin/nroff |
| | | 92 | .if exists(/boot/common/bin/openssl) |
79 | TOOLS_PLATFORM.openssl?= /boot/common/bin/openssl | | 93 | TOOLS_PLATFORM.openssl?= /boot/common/bin/openssl |
| | | 94 | .endif |
80 | TOOLS_PLATFORM.patch?= /bin/patch | | 95 | TOOLS_PLATFORM.patch?= /bin/patch |
81 | TOOLS_PLATFORM.printf?= /bin/printf | | 96 | TOOLS_PLATFORM.printf?= /bin/printf |
82 | TOOLS_PLATFORM.pwd?= /bin/pwd | | 97 | TOOLS_PLATFORM.pwd?= /bin/pwd |
83 | TOOLS_PLATFORM.rm?= /bin/rm | | 98 | TOOLS_PLATFORM.rm?= /bin/rm |
84 | TOOLS_PLATFORM.rmdir?= /bin/rmdir | | 99 | TOOLS_PLATFORM.rmdir?= /bin/rmdir |
85 | #TOOLS_PLATFORM.sdiff?= /bin/sdiff | | 100 | .if exists(/bin/sdiff) |
| | | 101 | TOOLS_PLATFORM.sdiff?= /bin/sdiff |
| | | 102 | .endif |
86 | TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed} | | 103 | TOOLS_PLATFORM.sed?= ${TOOLS_PLATFORM.gsed} |
87 | TOOLS_PLATFORM.sh?= /bin/sh | | 104 | TOOLS_PLATFORM.sh?= /bin/sh |
88 | TOOLS_PLATFORM.sleep?= /bin/sleep | | 105 | TOOLS_PLATFORM.sleep?= /bin/sleep |
89 | #TOOLS_PLATFORM.soelim?= /usr/bin/soelim | | 106 | #TOOLS_PLATFORM.soelim?= /usr/bin/soelim |
90 | TOOLS_PLATFORM.sort?= /bin/sort | | 107 | TOOLS_PLATFORM.sort?= /bin/sort |
91 | TOOLS_PLATFORM.strip?= /boot/develop/tools/gnupro/bin/strip | | 108 | TOOLS_PLATFORM.strip?= /boot/develop/tools/gnupro/bin/strip |
92 | TOOLS_PLATFORM.tail?= /bin/tail | | 109 | TOOLS_PLATFORM.tail?= /bin/tail |
93 | TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar} | | 110 | TOOLS_PLATFORM.tar?= ${TOOLS_PLATFORM.gtar} |
94 | #TOOLS_PLATFORM.tbl?= /usr/bin/tbl | | 111 | #TOOLS_PLATFORM.tbl?= /usr/bin/tbl |
95 | TOOLS_PLATFORM.tee?= /bin/tee | | 112 | TOOLS_PLATFORM.tee?= /bin/tee |
96 | TOOLS_PLATFORM.test?= test # shell builtin | | 113 | TOOLS_PLATFORM.test?= test # shell builtin |
97 | TOOLS_PLATFORM.touch?= /bin/touch | | 114 | TOOLS_PLATFORM.touch?= /bin/touch |
98 | TOOLS_PLATFORM.tr?= /bin/tr | | 115 | TOOLS_PLATFORM.tr?= /bin/tr |