summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkim <kim>1999-09-18 15:33:55 +0000
committerkim <kim>1999-09-18 15:33:55 +0000
commit5d952c1f534fc973a9da0a3c367329eee9789478 (patch)
tree71543971006a2723e9292030fee1637fb37e163e
parent2ee105b2a21437c3994fcc7f6e7558fee48cf3c4 (diff)
downloadpkgsrc-5d952c1f534fc973a9da0a3c367329eee9789478.tar.gz
Fix unknown MACHINE_ARCH on Solaris.
-rw-r--r--mk/bsd.prefs.mk7
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