Ticket #42331: mesa-darwin13.diff

File mesa-darwin13.diff, 1.5 KB (added by raimue (Rainer Müller), 11 years ago)

Proposed patch, leads to build errors

  • Portfile

     
    66name                mesa
    77epoch               1
    88version             8.0.4
    9 revision            3
     9revision            4
    1010categories          x11 graphics
    1111maintainers         jeremyhu openmaintainer
    1212license             MIT
     
    135135    }
    136136}
    137137
     138platform 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
    138145livecheck.type  regex
    139146livecheck.url   http://www.mesa3d.org/news.html
    140147livecheck.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