summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorkim <kim>1999-09-18 15:33:55 +0000
committerkim <kim>1999-09-18 15:33:55 +0000
commit7958c9893a93f8945805de09bfba614a276d027e (patch)
tree71543971006a2723e9292030fee1637fb37e163e /mk
parent039fc252d2d807001f6cbb8ed46950e170b46f13 (diff)
downloadpkgsrc-7958c9893a93f8945805de09bfba614a276d027e.tar.gz
Fix unknown MACHINE_ARCH on Solaris.
Diffstat (limited to 'mk')
-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