aboutsummaryrefslogtreecommitdiff
path: root/graphics/ruby-opengl
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-10-15 07:59:19 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-10-15 07:59:19 +0000
commit1955152c2b4bd07a2f1e37d1bcf6560ede89d4bb (patch)
treeffcc16d152f07d43d563fdd477e30d274bdf8d82 /graphics/ruby-opengl
parentf4e13001cd062aa5ba0f42e8444ea96cc898f60c (diff)
downloadports-1955152c2b4bd07a2f1e37d1bcf6560ede89d4bb.tar.gz
ports-1955152c2b4bd07a2f1e37d1bcf6560ede89d4bb.zip
Fix the build failure on XFree86 4.0. GL_CLIENT_ALL_ATTRIB_BITS
vs. GL_ALL_CLIENT_ATTRIB_BITS discrepancy...
Notes
Notes: svn path=/head/; revision=33852
Diffstat (limited to 'graphics/ruby-opengl')
-rw-r--r--graphics/ruby-opengl/files/patch-ab11
1 files changed, 8 insertions, 3 deletions
diff --git a/graphics/ruby-opengl/files/patch-ab b/graphics/ruby-opengl/files/patch-ab
index 65cab99dec7b..c4805a0e8424 100644
--- a/graphics/ruby-opengl/files/patch-ab
+++ b/graphics/ruby-opengl/files/patch-ab
@@ -1,11 +1,16 @@
--- ogl.c.orig Mon Aug 7 01:20:07 2000
-+++ ogl.c Fri Sep 22 01:58:15 2000
-@@ -4211,7 +4211,7 @@
++++ ogl.c Sun Oct 15 16:50:45 2000
+@@ -4211,7 +4211,13 @@
#if defined(GL_VERSION_1_1)
rb_define_const(mOGL, "CLIENT_PIXEL_STORE_BIT", INT2NUM(GL_CLIENT_PIXEL_STORE_BIT));
rb_define_const(mOGL, "CLIENT_VERTEX_ARRAY_BIT", INT2NUM(GL_CLIENT_VERTEX_ARRAY_BIT));
-- rb_define_const(mOGL, "CLIENT_ALL_ATTRIB_BITS", INT2NUM(GL_CLIENT_ALL_ATTRIB_BITS));
++#if defined(GL_CLIENT_ALL_ATTRIB_BITS)
++ /* For Mesa 3.2 and XFree86 4.0 */
+ rb_define_const(mOGL, "CLIENT_ALL_ATTRIB_BITS", INT2NUM(GL_CLIENT_ALL_ATTRIB_BITS));
++#elif defined(GL_ALL_CLIENT_ATTRIB_BITS)
++ /* For Mesa 3.2.1 */
+ rb_define_const(mOGL, "CLIENT_ALL_ATTRIB_BITS", INT2NUM(GL_ALL_CLIENT_ATTRIB_BITS));
++#endif
#endif /* GL_VERSION_1_1 */
rb_global_variable(&g_current_sel_buffer);