diff options
author | kim <kim@pkgsrc.org> | 1999-09-18 15:33:55 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 1999-09-18 15:33:55 +0000 |
commit | 9ec7d89a660aee6e8ee2f3c83b814fb284a93ed5 (patch) | |
tree | 71543971006a2723e9292030fee1637fb37e163e /mk/bsd.prefs.mk | |
parent | 27d53fa363a3ad883a08106f2815407cafc51ab3 (diff) | |
download | pkgsrc-9ec7d89a660aee6e8ee2f3c83b814fb284a93ed5.tar.gz |
Fix unknown MACHINE_ARCH on Solaris.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 173f2bcb91f..da053f199bc 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.12 1999/08/12 14:16:25 christos Exp $ +# $NetBSD: bsd.prefs.mk,v 1.13 1999/09/18 15:33:55 kim Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -45,12 +45,15 @@ MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}} .if ${OPSYS} == "NetBSD" LOWER_OPSYS?= netbsd .elif ${OPSYS} == "SunOS" +.if ${MACHINE_ARCH} == "unknown" +LOWER_ARCH!= ${UNAME} -p +.endif LOWER_VENDOR?= sun LOWER_OPSYS?= solaris .elif ${OPSYS} == "Linux" LOWER_OPSYS?= linux .if ${MACHINE_ARCH} == "unknown" -LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/' +LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/' .if ${LOWER_ARCH} == "i386" LOWER_VENDOR?= pc .else |