| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.300 2009/09/24 17:24:13 tron Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.301 2009/12/13 08:19:45 obache Exp $ |
2 | # | | 2 | # |
3 | # This file includes the mk.conf file, which contains the user settings. | | 3 | # This file includes the mk.conf file, which contains the user settings. |
4 | # | | 4 | # |
5 | # Packages should include this file before any of the .if directives, as | | 5 | # Packages should include this file before any of the .if directives, as |
6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. | | 6 | # well as before modifying variables like CFLAGS, LDFLAGS, and so on. |
7 | # Otherwise the behavior may be unexpected. | | 7 | # Otherwise the behavior may be unexpected. |
8 | # | | 8 | # |
9 | # When mk.conf is included by this file, the following variables are | | 9 | # When mk.conf is included by this file, the following variables are |
10 | # defined: | | 10 | # defined: |
11 | # | | 11 | # |
12 | # ACCEPTABLE_LICENSES | | 12 | # ACCEPTABLE_LICENSES |
13 | # This variable is set to the list of Open Source licenses. See | | 13 | # This variable is set to the list of Open Source licenses. See |
14 | # mk/license.mk for details. | | 14 | # mk/license.mk for details. |
| @@ -166,34 +166,38 @@ LOWER_ARCH!= ${UNAME} -p | | | @@ -166,34 +166,38 @@ LOWER_ARCH!= ${UNAME} -p |
166 | MACHINE_ARCH= x86_64 | | 166 | MACHINE_ARCH= x86_64 |
167 | . else | | 167 | . else |
168 | MACHINE_ARCH= ${LOWER_ARCH} | | 168 | MACHINE_ARCH= ${LOWER_ARCH} |
169 | . endif | | 169 | . endif |
170 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} | | 170 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} |
171 | LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/} | | 171 | LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/} |
172 | . if ${LOWER_ARCH} == "i386" | | 172 | . if ${LOWER_ARCH} == "i386" |
173 | LOWER_VENDOR?= pc | | 173 | LOWER_VENDOR?= pc |
174 | . endif | | 174 | . endif |
175 | LOWER_VENDOR?= unknown | | 175 | LOWER_VENDOR?= unknown |
176 | | | 176 | |
177 | .elif ${OPSYS} == "Interix" | | 177 | .elif ${OPSYS} == "Interix" |
178 | LOWER_OPSYS?= interix | | 178 | LOWER_OPSYS?= interix |
179 | LOWER_OPSYS_VERSUFFIX?= 3 | | | |
180 | LOWER_VENDOR?= pc | | 179 | LOWER_VENDOR?= pc |
181 | . if exists(/usr/lib/libc.so.3.5) | | 180 | . if exists(/usr/lib/libc.so.5.2) || exists(/usr/lib/x86/libc.so.5.2) |
| | | 181 | LOWER_OPSYS_VERSUFFIX= ${LOWER_OS_VERSION:C/([0-9]*).*/\1/} |
| | | 182 | . else |
| | | 183 | LOWER_OPSYS_VERSUFFIX?= 3 |
| | | 184 | . if exists(/usr/lib/libc.so.3.5) |
182 | OS_VERSION= 3.5 | | 185 | OS_VERSION= 3.5 |
183 | . elif exists(/usr/lib/libc.so.3.1) | | 186 | . elif exists(/usr/lib/libc.so.3.1) |
184 | OS_VERSION= 3.1 | | 187 | OS_VERSION= 3.1 |
185 | . else | | 188 | . else |
186 | OS_VERSION= 3.0 | | 189 | OS_VERSION= 3.0 |
| | | 190 | . endif |
187 | . endif | | 191 | . endif |
188 | | | 192 | |
189 | .elif !empty(OPSYS:MIRIX*) | | 193 | .elif !empty(OPSYS:MIRIX*) |
190 | LOWER_ARCH!= ${UNAME} -p | | 194 | LOWER_ARCH!= ${UNAME} -p |
191 | LOWER_OPSYS?= irix | | 195 | LOWER_OPSYS?= irix |
192 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} | | 196 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} |
193 | LOWER_VENDOR?= sgi | | 197 | LOWER_VENDOR?= sgi |
194 | | | 198 | |
195 | .elif ${OPSYS} == "Linux" | | 199 | .elif ${OPSYS} == "Linux" |
196 | OS_VERSION:= ${OS_VERSION:C/-.*$//} | | 200 | OS_VERSION:= ${OS_VERSION:C/-.*$//} |
197 | LOWER_OPSYS?= linux | | 201 | LOWER_OPSYS?= linux |
198 | MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/} | | 202 | MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/} |
199 | MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/} | | 203 | MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/} |