allegro5: fix FTBFS with newer mesa

This commit is contained in:
q66 2019-01-27 03:09:46 +01:00 committed by maxice8
parent 339732d448
commit a5c705a0fd
3 changed files with 31 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# Template file for 'allegro4'.
# Template file for 'allegro4'
pkgname=allegro4
version=4.4.2
revision=6

View file

@ -0,0 +1,29 @@
--- include/allegro5/allegro_opengl.h
+++ include/allegro5/allegro_opengl.h
@@ -103,10 +103,14 @@
/* HACK: Prevent both Mesa and SGI's broken headers from screwing us */
#define __glext_h_
+#define __gl_glext_h_
#define __glxext_h_
+#define __glx_glxext_h_
#include <GL/gl.h>
#undef __glext_h_
+#undef __gl_glext_h_
#undef __glxext_h_
+#undef __glx_glxext_h_
#endif /* ALLEGRO_MACOSX */
--- include/allegro5/opengl/GLext/glx_ext_defs.h
+++ include/allegro5/opengl/GLext/glx_ext_defs.h
@@ -1,7 +1,9 @@
/* HACK: Prevent both Mesa and SGI's broken headers from screwing us */
#define __glxext_h_
+#define __glx_glxext_h_
#include <GL/glx.h>
#undef __glxext_h_
+#undef __glx_glxext_h_
#ifndef GLX_VERSION_1_3
#define _ALLEGRO_GLX_VERSION_1_3

View file

@ -1,4 +1,4 @@
# Template file for 'allegro5'.
# Template file for 'allegro5'
pkgname=allegro5
version=5.2.3.0
revision=1