pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics Mesa has optimisations for SunPro so use them...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5a7cefa55bdf
branches: trunk
changeset: 482391:5a7cefa55bdf
user: grant <grant%pkgsrc.org@localhost>
date: Wed Oct 27 10:30:38 2004 +0000
description:
Mesa has optimisations for SunPro so use them when SPARC_TARGET_ARCH
is set appropriately (sparcv7, sparcv8, sparcv9).
diffstat:
graphics/Mesa/Makefile.common | 23 +++++++++++++++++++++--
graphics/MesaLib/Makefile | 4 +---
graphics/glu/Makefile | 4 +---
3 files changed, 23 insertions(+), 8 deletions(-)
diffs (80 lines):
diff -r 998faa02726f -r 5a7cefa55bdf graphics/Mesa/Makefile.common
--- a/graphics/Mesa/Makefile.common Wed Oct 27 07:50:30 2004 +0000
+++ b/graphics/Mesa/Makefile.common Wed Oct 27 10:30:38 2004 +0000
@@ -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 @@
MAINTAINER= tech-pkg%NetBSD.org@localhost
HOMEPAGE= http://www.mesa3d.org/
-ALL_TARGET= pkgsrc
USE_LIBTOOL= yes
USE_X11= yes
@@ -25,6 +24,26 @@
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 -r 998faa02726f -r 5a7cefa55bdf graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Wed Oct 27 07:50:30 2004 +0000
+++ b/graphics/MesaLib/Makefile Wed Oct 27 10:30:38 2004 +0000
@@ -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 @@
${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 -r 998faa02726f -r 5a7cefa55bdf graphics/glu/Makefile
--- a/graphics/glu/Makefile Wed Oct 27 07:50:30 2004 +0000
+++ b/graphics/glu/Makefile Wed Oct 27 10:30:38 2004 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index