summaryrefslogtreecommitdiff
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
parent757b4b37554000457b84ba681a1a002101d43715 (diff)
downloadpkgsrc-c98b0f7011d18da79ae031e9cc5f55f58d1bad3d.tar.gz
Mesa has optimisations for SunPro so use them when SPARC_TARGET_ARCH
is set appropriately (sparcv7, sparcv8, sparcv9).
-rw-r--r--graphics/Mesa/Makefile.common23
-rw-r--r--graphics/MesaLib/Makefile4
-rw-r--r--graphics/glu/Makefile4
3 files changed, 23 insertions, 8 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."; \
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index 657fb44a087..efd9823d4ab 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/10/26 13:55:37 adam Exp $
+# $NetBSD: Makefile,v 1.36 2004/10/27 10:30:38 grant Exp $
PKGNAME= MesaLib-${MESA_VERSION}
COMMENT= Graphics library similar to SGI's OpenGL
@@ -13,8 +13,6 @@ INSTLIBS= ${WRKSRC}/src/mesa/libGL.la \
${WRKSRC}/src/glw/libGLw.la \
${WRKSRC}/src/mesa/libOSMesa.la
-.include "../../mk/compiler.mk"
-
# The sparc asm included with Mesa does not build on sparc64
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc64"
CONFIGURE_ARGS+= --disable-sparc
diff --git a/graphics/glu/Makefile b/graphics/glu/Makefile
index 65d3ea6b7b0..911551a368c 100644
--- a/graphics/glu/Makefile
+++ b/graphics/glu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2004/10/26 13:56:18 adam Exp $
+# $NetBSD: Makefile,v 1.35 2004/10/27 10:30:38 grant Exp $
PKGNAME= ${DISTNAME:C/MesaLib/glu/}
COMMENT= GLU polygon tessellation facility for Mesa
@@ -16,8 +16,6 @@ MESA_REQD+= ${MESA_VERSION}
INSTLIBS= ${WRKSRC}/src/glu/sgi/libGLU.la
-.include "../../mk/bsd.prefs.mk"
-
pre-build:
cd ${WRKSRC} && ${RM} -fr src/mesa src/glut src/glw progs