summaryrefslogtreecommitdiff
path: root/graphics/Mesa
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2005-02-20 13:08:59 +0000
committergrant <grant@pkgsrc.org>2005-02-20 13:08:59 +0000
commit10b34512aad01a6b0e1c683114d4721acf3fd792 (patch)
tree24f553d27f43087bbfbb4a548d4f79390b18925c /graphics/Mesa
parentad16c7386d9277d2c3aa41de01a67804fd8a16a0 (diff)
downloadpkgsrc-10b34512aad01a6b0e1c683114d4721acf3fd792.tar.gz
use the correct target for gcc and sunpro on solaris/x86.
Diffstat (limited to 'graphics/Mesa')
-rw-r--r--graphics/Mesa/Makefile.common30
1 files changed, 19 insertions, 11 deletions
diff --git a/graphics/Mesa/Makefile.common b/graphics/Mesa/Makefile.common
index b99d289db0a..6e616eb52cc 100644
--- a/graphics/Mesa/Makefile.common
+++ b/graphics/Mesa/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.38 2005/02/20 12:43:08 grant Exp $
+# $NetBSD: Makefile.common,v 1.39 2005/02/20 13:08:59 grant Exp $
DISTNAME= MesaLib-${MESA_VERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -32,19 +32,27 @@ INSTALLATION_DIRS+= lib
# Mesa has proper support for Solaris and SunPro, use it.
.if ${OPSYS} == "SunOS"
-. if ${MACHINE_ARCH} == "sparc" && !empty(CC_VERSION:MSun)
-. if ${SPARC_TARGET_ARCH} == "sparcv7"
-BUILD_TARGET= sunos5
-. elif ${SPARC_TARGET_ARCH} == "sparcv8"
-BUILD_TARGET= sunos5-v8
-. elif ${SPARC_TARGET_ARCH} == "sparcv9"
-BUILD_TARGET= sunos5-v9
+. if ${MACHINE_ARCH} == "sparc"
+. if !empty(CC_VERSION:MSun)
+. if ${SPARC_TARGET_ARCH} == "sparcv7"
+BUILD_TARGET= sunos5
+. elif ${SPARC_TARGET_ARCH} == "sparcv8"
+BUILD_TARGET= sunos5-v8
+. elif ${SPARC_TARGET_ARCH} == "sparcv9"
+BUILD_TARGET= sunos5-v9
+. endif
+. else
+BUILD_TARGET= sunos5-gcc
+. endif
+. else # i386
+. if !empty(CC_VERSION:MSun)
+BUILD_TARGET= solaris-x86
+. else
+BUILD_TARGET= solaris-x86-gcc
. endif
-. else
-BUILD_TARGET= sunos5-gcc
. endif
.else
-BUILD_TARGET= pkgsrc
+BUILD_TARGET= pkgsrc
.endif
pre-install: