summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-03-09 19:04:52 +0000
committerjschauma <jschauma>2003-03-09 19:04:52 +0000
commit5ff0308b025d3777dcc21bedb97a33904a93d731 (patch)
treeee5c914c7d457e01b0bd94e6f702794c79bbc86e /graphics/MesaLib
parent9d05aed2a0e0513d84824f1f35b8a327f172776b (diff)
downloadpkgsrc-5ff0308b025d3777dcc21bedb97a33904a93d731.tar.gz
Update Mesa and friends to version 5.0, using patches provided in PR pkg/19302.
At the same time, move Mesa and friends to LOCALBASE rather than X11BASE, so that they can be installed regardless of XF version. Introduce MESA_REQD variable that can be set to 5.0, thus allowing systems with XF4 to indicate that the provided version is not good enough. All packages using Mesa, MesaLib, glu or glut will get a PKGREVISION bump over the next few days.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/Makefile12
-rw-r--r--graphics/MesaLib/PLIST13
-rw-r--r--graphics/MesaLib/buildlink2.mk13
-rw-r--r--graphics/MesaLib/distinfo10
-rw-r--r--graphics/MesaLib/patches/patch-aa12
-rw-r--r--graphics/MesaLib/patches/patch-ab38
6 files changed, 51 insertions, 47 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index fb78d52cbed..21f114b0c7d 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2002/12/07 02:38:56 schmonz Exp $
+# $NetBSD: Makefile,v 1.15 2003/03/09 19:04:53 jschauma Exp $
PKGNAME= MesaLib-${MESA_VERSION}
WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//}
@@ -14,6 +14,10 @@ BUILD_DIRS= ${WRKSRC}/src
.include "../../mk/bsd.prefs.mk"
+# XXX should be >= 3.4.2
+.if empty(MESA_REQD:M5.[0-9]*)
+#MESA_VERSION= 3.4.2
+
# Check if we got Mesa distributed with XFree86 4.x.
.if exists(${X11BASE}/include/GL/glx.h) && \
exists(${X11BASE}/lib/X11/config/X11.tmpl)
@@ -26,6 +30,8 @@ _IS_BUILTIN_MESA= 0
PKG_SKIP_REASON= "${PKGNAME} is part of your X11 distribution"
.endif
+.endif # MESA_REQD
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
cd ${WRKSRC}/include/GL; for hdr in \
@@ -36,3 +42,7 @@ post-install:
done
.include "../../mk/bsd.pkg.mk"
+
+# must be below bsd.pkg.mk to overwrite values
+PREFIX= ${LOCALBASE}
+X11PREFIX= ${LOCALBASE}
diff --git a/graphics/MesaLib/PLIST b/graphics/MesaLib/PLIST
index b1d5e8835dc..d61962bd7f8 100644
--- a/graphics/MesaLib/PLIST
+++ b/graphics/MesaLib/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2002/12/06 17:03:24 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.6 2003/03/09 19:04:53 jschauma Exp $
etc/mesa.conf
include/GL/gl.h
include/GL/gl_mangle.h
@@ -9,9 +9,14 @@ include/GL/osmesa.h
include/GL/xmesa.h
include/GL/xmesa_x.h
include/GL/xmesa_xf86.h
-lib/libGL.so
-lib/libGL.so.3
-lib/libGL.so.3.4
lib/libGL.a
lib/libGL.la
+lib/libGL.so
+lib/libGL.so.5
+lib/libGL.so.5.500
+lib/libOSMesa.a
+lib/libOSMesa.la
+lib/libOSMesa.so
+lib/libOSMesa.so.4
+lib/libOSMesa.so.4.500
@unexec ${RMDIR} %D/include/GL >/dev/null 2>&1 || ${TRUE}
diff --git a/graphics/MesaLib/buildlink2.mk b/graphics/MesaLib/buildlink2.mk
index 5c3b63669fe..c4958ccde95 100644
--- a/graphics/MesaLib/buildlink2.mk
+++ b/graphics/MesaLib/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.7 2002/11/20 22:13:22 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.8 2003/03/09 19:04:53 jschauma Exp $
.if !defined(MESALIB_BUILDLINK2_MK)
MESALIB_BUILDLINK2_MK= # defined
@@ -9,6 +9,13 @@ MESA_REQD?= 3.4.2
BUILDLINK_DEPENDS.MesaLib?= MesaLib>=${MESA_REQD}
BUILDLINK_PKGSRCDIR.MesaLib?= ../../graphics/MesaLib
+# XXX should be >= 3.4.2
+.if !empty(MESA_REQD:M5.[0-9]*)
+_NEED_MESALIB= YES
+CPPFLAGS+= -DGLX_GLXEXT_LEGACY
+CFLAGS+= -DGLX_GLXEXT_LEGACY
+.else
+
# Check if we got Mesa distributed with XFree86 4.x or if we need to
# depend on the Mesa package.
#
@@ -46,10 +53,12 @@ _NEED_MESALIB!= \
. endif
.endif
+.endif # MESA_REQD
+
.if ${_NEED_MESALIB} == "YES"
BUILDLINK_PACKAGES+= MesaLib
EVAL_PREFIX+= BUILDLINK_PREFIX.MesaLib=MesaLib
-BUILDLINK_PREFIX.MesaLib_DEFAULT= ${X11PREFIX}
+BUILDLINK_PREFIX.MesaLib_DEFAULT= ${LOCALBASE}
.else
BUILDLINK_PREFIX.MesaLib= ${X11BASE}
.endif
diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo
index d41e7ae9e71..1d21bd80a4b 100644
--- a/graphics/MesaLib/distinfo
+++ b/graphics/MesaLib/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2002/12/06 17:03:24 jschauma Exp $
+$NetBSD: distinfo,v 1.7 2003/03/09 19:04:53 jschauma Exp $
-SHA1 (MesaLib-3.4.2.tar.bz2) = 1a41b61a29538127dbb0ab2882ac69554a0e9e37
-Size (MesaLib-3.4.2.tar.bz2) = 1380805 bytes
-SHA1 (patch-aa) = f8e311944bbd80bf3939196dbbe993f78b2f8c50
-SHA1 (patch-ab) = 8cf672d645f9681b0987e94d3692903a5314173e
+SHA1 (MesaLib-5.0.tar.bz2) = 098260c89c4109a8823c76a2c4d75cef8484819d
+Size (MesaLib-5.0.tar.bz2) = 1645037 bytes
+SHA1 (patch-aa) = 7fa63dca0edfc41812b5432cbabd861ec52cec33
+SHA1 (patch-ab) = 17d8f0508710fc03a75e736a3298ede72b953af7
diff --git a/graphics/MesaLib/patches/patch-aa b/graphics/MesaLib/patches/patch-aa
index 0aed774904c..7474cf7a9e9 100644
--- a/graphics/MesaLib/patches/patch-aa
+++ b/graphics/MesaLib/patches/patch-aa
@@ -1,14 +1,14 @@
-$NetBSD: patch-aa,v 1.4 2002/12/06 17:03:24 jschauma Exp $
+$NetBSD: patch-aa,v 1.5 2003/03/09 19:04:53 jschauma Exp $
---- src/X86/assyntax.h.orig Mon Sep 25 17:12:01 2000
-+++ src/X86/assyntax.h Sun Dec 10 23:45:34 2000
-@@ -954,7 +954,8 @@
+--- src/X86/assyntax.h.orig Tue Nov 19 15:17:48 2002
++++ src/X86/assyntax.h Tue Nov 19 15:18:34 2002
+@@ -965,7 +965,8 @@
#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) \
- || (defined(linux) || defined(__OS2ELF__)) && defined(__ELF__) \
+ || (defined(__linux__) || defined(__OS2ELF__)) && defined(__ELF__) \
- || defined(__FreeBSD__) && __FreeBSD__ >= 3
+ || defined(__FreeBSD__) && __FreeBSD__ >= 3 \
+ || defined(__NetBSD__) && defined(__ELF__)
#define GLNAME(a) a
#else
- #define GLNAME(a) _ ## a
+ #define GLNAME(a) CONCAT(_, a)
diff --git a/graphics/MesaLib/patches/patch-ab b/graphics/MesaLib/patches/patch-ab
index 4e3bd4ae2a9..1234ebf718e 100644
--- a/graphics/MesaLib/patches/patch-ab
+++ b/graphics/MesaLib/patches/patch-ab
@@ -1,33 +1,13 @@
-$NetBSD: patch-ab,v 1.6 2002/12/06 17:03:24 jschauma Exp $
+$NetBSD: patch-ab,v 1.7 2003/03/09 19:04:53 jschauma Exp $
---- configure.orig Thu May 17 00:28:58 2001
-+++ configure Fri May 18 14:16:44 2001
-@@ -823,8 +823,8 @@
- MESA_MAJOR=3
- MESA_MINOR=4
- MESA_TINY=2
--LIBGL_VERSION=1:2:0${MESA_MAJOR}0${MESA_MINOR}0${MESA_TINY}
--LIBGLU_VERSION=1:1:0${MESA_MAJOR}0${MESA_MINOR}0${MESA_TINY}
-+LIBGL_VERSION=${MESA_MAJOR}:${MESA_MINOR}:${MESA_TINY}
-+LIBGLU_VERSION=${MESA_MAJOR}:${MESA_MINOR}:${MESA_TINY}
- LIBGLUT_VERSION=3:7:0
-
-
-@@ -4635,7 +4635,7 @@
- if test -d $srcdir/src-glut; then
- have_glut_source=yes
- else
-- { echo "configure: error: GLUT sources missing; that is not supported at this point." 1>&2; exit 1; }
-+ { echo "configure: error: GLUT sources missing; that is not supported at this point." 1>&2; }
- fi
- echo "$ac_t""$have_glut_source" 1>&6
- need_glut=no
-@@ -4673,7 +4673,7 @@
- done
- echo "$ac_t""$have_demo_source" 1>&6
- if test "x$have_demo_source" != xyes; then
-- { echo "configure: error: Demo sources missing; that is not supported at this point." 1>&2; exit 1; }
-+ { echo "configure: error: Demo sources missing; that is not supported at this point." 1>&2; }
+--- configure.orig Wed Nov 13 22:18:19 2002
++++ configure Tue Nov 19 15:52:05 2002
+@@ -1532,7 +1532,7 @@
fi
+ MAINT=$MAINTAINER_MODE_TRUE
+-ac_config_files="$ac_config_files Makefile include/Makefile include/GL/Makefile src/Makefile src/array_cache/Makefile src/math/Makefile src/swrast/Makefile src/swrast_setup/Makefile src/tnl/Makefile src/Trace/Makefile src/FX/Makefile src/FX/X86/Makefile src/GGI/Makefile src/GGI/include/Makefile src/GGI/include/ggi/Makefile src/GGI/include/ggi/mesa/Makefile src/GGI/ggimesa.conf src/GGI/default/Makefile src/GGI/default/genkgi.conf src/GGI/display/Makefile src/GGI/display/fbdev.conf src/OSmesa/Makefile src/SVGA/Makefile src/X/Makefile src/X86/Makefile src/SPARC/Makefile util/Makefile ggi/demos/Makefile ggi/ggiglut/Makefile src-glu/Makefile si-glu/Makefile si-glu/include/Makefile si-glu/libnurbs/Makefile si-glu/libnurbs/interface/Makefile si-glu/libnurbs/internals/Makefile si-glu/libnurbs/nurbtess/Makefile si-glu/libtess/Makefile si-glu/libutil/Makefile"
++ac_config_files="$ac_config_files Makefile include/Makefile include/GL/Makefile src/Makefile src/array_cache/Makefile src/math/Makefile src/swrast/Makefile src/swrast_setup/Makefile src/tnl/Makefile src/Trace/Makefile src/FX/Makefile src/FX/X86/Makefile src/GGI/Makefile src/GGI/include/Makefile src/GGI/include/ggi/Makefile src/GGI/include/ggi/mesa/Makefile src/GGI/ggimesa.conf src/GGI/default/Makefile src/GGI/default/genkgi.conf src/GGI/display/Makefile src/GGI/display/fbdev.conf src/OSmesa/Makefile src/SVGA/Makefile src/X/Makefile src/X86/Makefile src/SPARC/Makefile util/Makefile src-glu/Makefile si-glu/Makefile si-glu/include/Makefile si-glu/libnurbs/Makefile si-glu/libnurbs/interface/Makefile si-glu/libnurbs/internals/Makefile si-glu/libnurbs/nurbtess/Makefile si-glu/libtess/Makefile si-glu/libutil/Makefile"
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'