Ticket #42331: mesa-darwin13.diff
File mesa-darwin13.diff, 1.5 KB (added by raimue (Rainer Müller), 11 years ago) |
---|
-
Portfile
6 6 name mesa 7 7 epoch 1 8 8 version 8.0.4 9 revision 39 revision 4 10 10 categories x11 graphics 11 11 maintainers jeremyhu openmaintainer 12 12 license MIT … … 135 135 } 136 136 } 137 137 138 platform darwin 13 { 139 # The type of GLhandleARB changed in OpenGL.framework, 140 # apply this change to GL/glext.h accordingly. 141 # https://trac.macports.org/ticket/42331 142 patchfiles-append patch-darwin13-glhandlearb.diff 143 } 144 138 145 livecheck.type regex 139 146 livecheck.url http://www.mesa3d.org/news.html 140 147 livecheck.regex {relnotes-([0-9.]+)\.html} -
files/patch-darwin13-glhandlearb.diff
1 --- a/include/GL/glext.h.orig 2014-02-01 23:42:28.000000000 +0100 2 +++ b/include/GL/glext.h 2014-02-01 23:41:27.000000000 +0100 3 @@ -5337,8 +5337,12 @@ 4 #ifndef GL_ARB_shader_objects 5 /* GL types for program/shader text and shader object handles */ 6 typedef char GLcharARB; 7 +#ifdef __APPLE__ 8 +typedef void *GLhandleARB; 9 +#else 10 typedef unsigned int GLhandleARB; 11 #endif 12 +#endif 13 14 /* GL type for "half" precision (s10e5) float data in host memory */ 15 #ifndef GL_ARB_half_float_pixel