summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-06-13 14:16:21 +0000
committerwiz <wiz@pkgsrc.org>2013-06-13 14:16:21 +0000
commitba50a262f6cfc234b423a4f80032437e257c6262 (patch)
tree1b50b94d7a7a64dbe6f5610ede49d7d0170f86ca /graphics/MesaLib
parent207f66d57780decfe6b1b8a76ce339e309c19da5 (diff)
downloadpkgsrc-ba50a262f6cfc234b423a4f80032437e257c6262.tar.gz
Check for symbol existence with #ifdef, not #if.
Needed since some other files only #define the symbol without a value. Bump PKGREVISION since this changes an installed header file.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/Makefile4
-rw-r--r--graphics/MesaLib/patches/patch-include_GL_gl.h16
2 files changed, 18 insertions, 2 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index b1db9333a28..23e6a0ed3dd 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.92 2013/05/27 06:45:30 wiz Exp $
+# $NetBSD: Makefile,v 1.93 2013/06/13 14:16:21 wiz Exp $
PKGNAME= MesaLib-${MESA_PKGVERSION}
-PKGREVISION= 1
+PKGREVISION= 2
COMMENT= Graphics library similar to SGI's OpenGL
CONFLICTS+= xf86driproto<2.0.4
diff --git a/graphics/MesaLib/patches/patch-include_GL_gl.h b/graphics/MesaLib/patches/patch-include_GL_gl.h
new file mode 100644
index 00000000000..a3a07c727f3
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-include_GL_gl.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-include_GL_gl.h,v 1.1 2013/06/13 14:16:21 wiz Exp $
+
+Check for symbol existence with #ifdef, not #if.
+Needed since some other files only #define the symbol without a value.
+
+--- include/GL/gl.h.orig 2011-11-23 01:09:52.000000000 +0000
++++ include/GL/gl.h
+@@ -2094,7 +2094,7 @@ typedef void (APIENTRYP PFNGLMULTITEXCOO
+
+
+
+-#if GL_ARB_shader_objects
++#ifdef GL_ARB_shader_objects
+
+ #ifndef GL_MESA_shader_debug
+ #define GL_MESA_shader_debug 1