summaryrefslogtreecommitdiff
path: root/graphics/Mesa
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-10-27 10:30:38 +0000
committergrant <grant@pkgsrc.org>2004-10-27 10:30:38 +0000
commitc98b0f7011d18da79ae031e9cc5f55f58d1bad3d (patch)
tree30e3dbdca0d936c531308e5402e16c9b33c7aae7 /graphics/Mesa
parent757b4b37554000457b84ba681a1a002101d43715 (diff)
downloadpkgsrc-c98b0f7011d18da79ae031e9cc5f55f58d1bad3d.tar.gz
Mesa has optimisations for SunPro so use them when SPARC_TARGET_ARCH
is set appropriately (sparcv7, sparcv8, sparcv9).
Diffstat (limited to 'graphics/Mesa')
-rw-r--r--graphics/Mesa/Makefile.common23
1 files changed, 21 insertions, 2 deletions
diff --git a/graphics/Mesa/Makefile.common b/graphics/Mesa/Makefile.common
index 56d75439451..852ccd50e41 100644
--- a/graphics/Mesa/Makefile.common
+++ b/graphics/Mesa/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2004/10/26 13:55:17 adam Exp $
+# $NetBSD: Makefile.common,v 1.33 2004/10/27 10:30:38 grant Exp $
DISTNAME= MesaLib-${MESA_VERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@@ -13,7 +13,6 @@ MESA_VERSION= 6.2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.mesa3d.org/
-ALL_TARGET= pkgsrc
USE_LIBTOOL= yes
USE_X11= yes
@@ -25,6 +24,26 @@ DISTINFO_FILE?= ${.CURDIR}/../MesaLib/distinfo
INSTALLATION_DIRS+= lib
+.include "../../mk/compiler.mk"
+.include "../../mk/bsd.prefs.mk"
+
+# Mesa has proper support for Solaris and SunPro, use it.
+.if ${OPSYS} == "SunOS"
+. if !empty(CC_VERSION:MSun)
+. if ${SPARC_TARGET_ARCH} == "sparcv7"
+ALL_TARGET= sunos5
+. elif ${SPARC_TARGET_ARCH} == "sparcv8"
+ALL_TARGET= sunos5-v8
+. elif ${SPARC_TARGET_ARCH} == "sparcv9"
+ALL_TARGET= sunos5-v9
+. endif
+. else
+ALL_TARGET= sunos5-gcc
+. endif
+.else
+ALL_TARGET= pkgsrc
+.endif
+
pre-install:
@if [ -n "${INSTLIBS}" ]; then \
${ECHO_MSG} "Installing libraries."; \