summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorgrant <grant>2005-02-20 13:08:59 +0000
committergrant <grant>2005-02-20 13:08:59 +0000
commit38ef016225b0e1cb137f4b410319aeb69bbf0253 (patch)
tree24f553d27f43087bbfbb4a548d4f79390b18925c /graphics
parentb3c8ad701adcdbdea1f9e75bbe7454319b26aaeb (diff)
downloadpkgsrc-38ef016225b0e1cb137f4b410319aeb69bbf0253.tar.gz
use the correct target for gcc and sunpro on solaris/x86.
Diffstat (limited to 'graphics')
-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: