| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: tools.Darwin.mk,v 1.60 2020/10/10 09:31:50 jperkin Exp $ | | 1 | # $NetBSD: tools.Darwin.mk,v 1.61 2021/01/19 11:42:18 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) |
| @@ -39,33 +39,39 @@ TOOLS_PLATFORM.echo?= echo # shell bu | | | @@ -39,33 +39,39 @@ TOOLS_PLATFORM.echo?= echo # shell bu |
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 | | 48 | TOOLS_PLATFORM.gerep?= /usr/bin/egrep |
49 | TOOLS_PLATFORM.gfrep?= /usr/bin/fgrep | | 49 | TOOLS_PLATFORM.gfrep?= /usr/bin/fgrep |
50 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep | | 50 | TOOLS_PLATFORM.ggrep?= /usr/bin/grep |
51 | # | | 51 | # |
52 | # Big Sur does not support running XCode programs through a symlink, which | | 52 | # Avoid using the native gnumake and gm4. On systems up to and including Big |
53 | # breaks the .tools/bin directory. | | 53 | # Sur, the version of GNU m4 is from 2006 and unable to build autoconf 2.70. |
| | | 54 | # |
| | | 55 | # While this could be more cleanly handled with a GM4_REQD set to a recent |
| | | 56 | # version, there is a larger problem that Big Sur does not support running |
| | | 57 | # these XCode programs through a symlink, causing the links in the .tools/bin |
| | | 58 | # directory to fail. |
| | | 59 | # |
| | | 60 | # Avoiding them completely at this time is much simpler. |
| | | 61 | # |
| | | 62 | #TOOLS_PLATFORM.gmake?= /usr/bin/gnumake |
| | | 63 | #TOOLS_PLATFORM.gm4?= /usr/bin/gm4 |
54 | # | | 64 | # |
55 | .if ${OS_VERSION:R} > 9 && ${OS_VERSION:R} < 20 | | | |
56 | TOOLS_PLATFORM.gmake?= /usr/bin/gnumake | | | |
57 | TOOLS_PLATFORM.gm4?= /usr/bin/gm4 | | | |
58 | .endif | | | |
59 | TOOLS_PLATFORM.grep?= /usr/bin/grep | | 65 | TOOLS_PLATFORM.grep?= /usr/bin/grep |
60 | .if exists(/usr/bin/groff) | | 66 | .if exists(/usr/bin/groff) |
61 | TOOLS_PLATFORM.groff?=/usr/bin/groff | | 67 | TOOLS_PLATFORM.groff?=/usr/bin/groff |
62 | .endif | | 68 | .endif |
63 | .if exists(/usr/bin/gnutar) | | 69 | .if exists(/usr/bin/gnutar) |
64 | TOOLS_PLATFORM.gtar?= /usr/bin/gnutar | | 70 | TOOLS_PLATFORM.gtar?= /usr/bin/gnutar |
65 | .endif | | 71 | .endif |
66 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f | | 72 | TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f |
67 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat | | 73 | TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat |
68 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} | | 74 | TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} |
69 | TOOLS_PLATFORM.head?= /usr/bin/head | | 75 | TOOLS_PLATFORM.head?= /usr/bin/head |
70 | TOOLS_PLATFORM.hostname?= /bin/hostname | | 76 | TOOLS_PLATFORM.hostname?= /bin/hostname |
71 | TOOLS_PLATFORM.id?= /usr/bin/id | | 77 | TOOLS_PLATFORM.id?= /usr/bin/id |