| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: bsd.prefs.mk,v 1.274 2008/01/04 01:46:24 rillig Exp $ | | 1 | # $NetBSD: bsd.prefs.mk,v 1.275 2008/01/12 14:40:21 joerg 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. |
| @@ -177,26 +177,29 @@ LOWER_ARCH!= ${UNAME} -p | | | @@ -177,26 +177,29 @@ LOWER_ARCH!= ${UNAME} -p |
177 | LOWER_OPSYS?= irix | | 177 | LOWER_OPSYS?= irix |
178 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} | | 178 | LOWER_OPSYS_VERSUFFIX?= ${OS_VERSION} |
179 | LOWER_VENDOR?= sgi | | 179 | LOWER_VENDOR?= sgi |
180 | | | 180 | |
181 | .elif ${OPSYS} == "Linux" | | 181 | .elif ${OPSYS} == "Linux" |
182 | OS_VERSION:= ${OS_VERSION:C/-.*$//} | | 182 | OS_VERSION:= ${OS_VERSION:C/-.*$//} |
183 | LOWER_OS_VERSION:= ${LOWER_OS_VERSION_CMD:C/-.*$//} | | 183 | LOWER_OS_VERSION:= ${LOWER_OS_VERSION_CMD:C/-.*$//} |
184 | LOWER_OPSYS?= linux | | 184 | LOWER_OPSYS?= linux |
185 | MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/} | | 185 | MACHINE_ARCH:= ${MACHINE_ARCH:C/i.86/i386/} |
186 | MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/} | | 186 | MACHINE_ARCH:= ${MACHINE_ARCH:C/ppc/powerpc/} |
187 | . if !defined(LOWER_ARCH) | | 187 | . if !defined(LOWER_ARCH) |
188 | LOWER_ARCH!= ${UNAME} -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/' | | 188 | LOWER_ARCH!= ${UNAME} -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/' |
189 | . endif # !defined(LOWER_ARCH) | | 189 | . endif # !defined(LOWER_ARCH) |
| | | 190 | . if ${LOWER_ARCH} == "x86_64" |
| | | 191 | MACHINE_ARCH= x86_64 |
| | | 192 | . endif |
190 | . if ${MACHINE_ARCH} == "unknown" || ${MACHINE_ARCH} == "" | | 193 | . if ${MACHINE_ARCH} == "unknown" || ${MACHINE_ARCH} == "" |
191 | MACHINE_ARCH= ${LOWER_ARCH} | | 194 | MACHINE_ARCH= ${LOWER_ARCH} |
192 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} | | 195 | MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q} |
193 | . endif | | 196 | . endif |
194 | . if exists(/etc/debian_version) | | 197 | . if exists(/etc/debian_version) |
195 | LOWER_VENDOR?= debian | | 198 | LOWER_VENDOR?= debian |
196 | . elif exists(/etc/mandrake-release) | | 199 | . elif exists(/etc/mandrake-release) |
197 | LOWER_VENDOR?= mandrake | | 200 | LOWER_VENDOR?= mandrake |
198 | . elif exists(/etc/redhat-version) | | 201 | . elif exists(/etc/redhat-version) |
199 | LOWER_VENDOR?= redhat | | 202 | LOWER_VENDOR?= redhat |
200 | . elif exists(/etc/slackware-version) | | 203 | . elif exists(/etc/slackware-version) |
201 | LOWER_VENDOR?= slackware | | 204 | LOWER_VENDOR?= slackware |
202 | . elif ${LOWER_ARCH} == "i386" | | 205 | . elif ${LOWER_ARCH} == "i386" |