# ChangeLog for dev-games/crystalspace
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/ChangeLog,v 1.9 2004/12/25 08:00:54 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/ChangeLog,v 1.10 2004/12/28 01:52:02 vapier Exp $
+
+ 27 Dec 2004; Mike Frysinger <vapier@gentoo.org> +files/0.98.4-gl.patch,
+ crystalspace-0.98.4.ebuild:
+ Add patch to make GL happy #75702 by Tom Wesley.
*crystalspace-0.98.4 (25 Dec 2004)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 c414510a08d70a98c9d95f57e7038e9f ChangeLog 1672
+MD5 f32eb4717dc0ce6836c073261ba5616f ChangeLog 1829
MD5 e4c7a49ca08eb200cfa0a9f9246e2257 metadata.xml 959
-MD5 6aa863c44869ad9e85ebde9c78335aa4 crystalspace-0.98.4.ebuild 1701
+MD5 bfa8ec750b917eed1c807f2d47b85f38 crystalspace-0.98.4.ebuild 1799
+MD5 e28ffc0ee4f66ce9d10b5005d0acbf59 files/0.98.4-gl.patch 1632
MD5 bec0edb0863c282510494dc014bbf750 files/digest-crystalspace-0.98.4 63
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.10 (GNU/Linux)
-iD8DBQFBzl1zroRuSHgZdywRAgDaAKCGMJ1Dj27jLyO5qWN5abTr99R/8ACeKL6f
-OASqYDB7lTnc8C/ReH/ycJw=
-=Uw6A
+iD8DBQFB0LxZroRuSHgZdywRAv5UAJ9pD1FJZI+SkiAhoHWYdettgq2+CACfbjd3
+SXF3Ozv5l1cGnkKP3nG3USc=
+=Sh5m
-----END PGP SIGNATURE-----
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/crystalspace-0.98.4.ebuild,v 1.3 2004/12/26 06:42:39 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-games/crystalspace/crystalspace-0.98.4.ebuild,v 1.4 2004/12/28 01:52:02 vapier Exp $
+
+inherit eutils
MY_P="cs${PV:2:2}_00${PV:5:1}"
DESCRIPTION="portable 3D Game Development Kit written in C++"
CRYSTAL_PREFIX="/opt/crystal"
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-gl.patch #75702
+}
+
src_compile() {
./configure --prefix=${CRYSTAL_PREFIX} || die "configure failed"
jam all || die "compile failed"
--- /dev/null
+Some GL header files (like nvidia) define GLcharARB/GLhandleARB
+differently ... this pisses off newer gcc's :)
+
+C++ ./out/linuxx86/optimize/plugins/video/renderer/opengl/ogl_g3d.o
+In file included from ./plugins/video/canvas/openglcommon/glstates.h:29,
+ from plugins/video/renderer/opengl/ogl_g3dcom.h:49,
+ from plugins/video/renderer/opengl/ogl_g3d.h:29,
+ from plugins/video/renderer/opengl/ogl_g3d.cpp:33:
+./plugins/video/canvas/openglcommon/glextmanager.h:110: error: conflicting declaration 'typedef unsigned int GLhandleARB'
+/usr/X11R6/include/GL/glext.h:2268: error: 'GLhandleARB' has a previous declaration as `typedef long unsigned int GLhandleARB'
+./plugins/video/canvas/openglcommon/glextmanager.h:110: error: declaration of `typedef unsigned int GLhandleARB'
+/usr/X11R6/include/GL/glext.h:2268: error: conflicts with previous declaration `typedef long unsigned int GLhandleARB'
+./plugins/video/canvas/openglcommon/glextmanager.h:110: error: declaration of `typedef unsigned int GLhandleARB'
+/usr/X11R6/include/GL/glext.h:2268: error: conflicts with previous declaration `typedef long unsigned int GLhandleARB'
+
+Patch by Tom Wesley resolves this
+http://bugs.gentoo.org/show_bug.cgi?id=75702
+
+--- CS/plugins/video/canvas/openglcommon/glextmanager.h.orig 2004-12-27 19:38:02.640064016 -0500
++++ CS/plugins/video/canvas/openglcommon/glextmanager.h 2004-12-27 19:38:08.371192752 -0500
+@@ -106,8 +106,6 @@
+ /*
+ Appear in the ARB_shader_objects ext spec.
+ */
+-typedef char GLcharARB;
+-typedef unsigned int GLhandleARB;
+
+ #include "iutil/cmdline.h"
+ #include "iutil/objreg.h"