diff options
author | adam <adam@pkgsrc.org> | 2017-06-08 12:37:33 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2017-06-08 12:37:33 +0000 |
commit | 551d56c8e71d6a6cc3269a67e66e45556c451188 (patch) | |
tree | 6a5d17f440d0e3f15de7ccbc2a46dc180190035f /graphics/libepoxy | |
parent | a17ea61d56342de44e7939acf6459180c3bb9955 (diff) | |
download | pkgsrc-551d56c8e71d6a6cc3269a67e66e45556c451188.tar.gz |
Fix for missing EGL_CAST
Diffstat (limited to 'graphics/libepoxy')
-rw-r--r-- | graphics/libepoxy/distinfo | 3 | ||||
-rw-r--r-- | graphics/libepoxy/patches/patch-registry_egl.xml | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/graphics/libepoxy/distinfo b/graphics/libepoxy/distinfo index d86001163a7..a658e6bb030 100644 --- a/graphics/libepoxy/distinfo +++ b/graphics/libepoxy/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.16 2017/06/08 04:31:34 adam Exp $ +$NetBSD: distinfo,v 1.17 2017/06/08 12:37:33 adam Exp $ SHA1 (libepoxy-1.4.3.tar.gz) = 4a375660b9928c29a52c4dbe2220c0813617f390 RMD160 (libepoxy-1.4.3.tar.gz) = 2b1d083ce8e17e2885099c08fc745b7b7ae5d630 SHA512 (libepoxy-1.4.3.tar.gz) = 41c7a4eea66c89346b0ec71407b2d22bf645ed0ef81ebad560370903f138ed48abb6bc6bcc88c75a3a05497acc6720397db828d61301599c05040263a9f4f7f0 Size (libepoxy-1.4.3.tar.gz) = 310823 bytes SHA1 (patch-configure.ac) = a21e1369028abbb34bd0add634d89747c587d610 +SHA1 (patch-registry_egl.xml) = 37923cc2be65ab2dead9af8ff062702ab5d63392 SHA1 (patch-src_dispatch__common.c) = 8ab5351f3ef67cc36aacfc43e7f61e6a7bcc179a diff --git a/graphics/libepoxy/patches/patch-registry_egl.xml b/graphics/libepoxy/patches/patch-registry_egl.xml new file mode 100644 index 00000000000..170781d7957 --- /dev/null +++ b/graphics/libepoxy/patches/patch-registry_egl.xml @@ -0,0 +1,20 @@ +$NetBSD: patch-registry_egl.xml,v 1.1 2017/06/08 12:37:33 adam Exp $ + +Define EGL_CAST if missing. + +--- registry/egl.xml.orig 2017-06-06 09:55:43.000000000 +0000 ++++ registry/egl.xml +@@ -88,6 +88,13 @@ + EGLint iStride; + };</type> + <type>typedef void (<apientry/> *<name>EGLDEBUGPROCKHR</name>)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);</type> ++ <type>#if !defined(EGL_CAST) ++#if defined(__cplusplus) ++#define EGL_CAST(type, value) (static_cast<type>(value)) ++#else ++#define EGL_CAST(type, value) ((type) (value)) ++#endif ++#endif</type> + </types> + + <!-- SECTION: EGL enumerant (token) definitions. --> |