diff options
author | agc <agc@pkgsrc.org> | 2002-10-12 17:17:22 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-10-12 17:17:22 +0000 |
commit | acd94fb63428c96fa7203790496172f2d8ae37d4 (patch) | |
tree | 257cab444fcaaa91009c856a9c788b11411bc322 /mk/bsd.prefs.mk | |
parent | 8c19392a6c277ac5de3e393ba09775fd4915245b (diff) | |
download | pkgsrc-acd94fb63428c96fa7203790496172f2d8ae37d4.tar.gz |
On Solaris, MACHINE_ARCH on Suns can be sun4c or i86pc with
bootstrap-pkgsrc, so adjust accordingly.
Also indent a little better.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r-- | mk/bsd.prefs.mk | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 5b2984103ae..2766c71beaf 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.79 2002/09/24 21:54:51 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.80 2002/10/12 17:17:22 agc Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -67,34 +67,37 @@ MACHINE_GNU_ARCH?= ${GNU_ARCH.${MACHINE_ARCH}} LOWER_OPSYS?= netbsd .elif ${OPSYS} == "SunOS" -. if ${MACHINE_ARCH} == "unknown" -. if !defined(LOWER_ARCH) +. if ${MACHINE_ARCH} == "sparc" +SPARC_TARGET_ARCH?= sparcv7 +. elif ${MACHINE_ARCH} == "sun4" +MACHINE_ARCH= sparc +. elif ${MACHINE_ARCH} == "i86pc" +MACHINE_ARCH= i386 +. elif ${MACHINE_ARCH} == "unknown" +. if !defined(LOWER_ARCH) LOWER_ARCH!= ${UNAME} -p -. endif # !defined(LOWER_ARCH) +. endif # !defined(LOWER_ARCH) MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH} -. endif +. endif LOWER_VENDOR?= sun LOWER_OPSYS?= solaris -. if (${MACHINE_ARCH} == sparc) -SPARC_TARGET_ARCH?= sparcv7 -. endif # We need to set this early to get "USE_MESA" and "USE_XPM" working. X11BASE?= ${DESTDIR}/usr/openwin .elif ${OPSYS} == "Linux" LOWER_OPSYS?= linux -. if ${MACHINE_ARCH} == "unknown" -. if !defined(LOWER_ARCH) +. if ${MACHINE_ARCH} == "unknown" +. if !defined(LOWER_ARCH) LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/' -. endif # !defined(LOWER_ARCH) +. endif # !defined(LOWER_ARCH) MACHINE_ARCH= ${LOWER_ARCH} MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH} -. if ${LOWER_ARCH} == "i386" +. if ${LOWER_ARCH} == "i386" LOWER_VENDOR?= pc -. else +. else LOWER_VENDOR?= unknown +. endif . endif -. endif .elif ${OPSYS} == "Darwin" LOWER_OPSYS?= darwin |