diff --git a/games-engines/love/files/love-0.7.2-glext.patch b/games-engines/love/files/love-0.7.2-glext.patch new file mode 100644 index 000000000..0b6778f6a --- /dev/null +++ b/games-engines/love/files/love-0.7.2-glext.patch @@ -0,0 +1,21 @@ +diff --unified --recursive --text love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp love-HEAD.new/src/modules/graphics/opengl/Framebuffer.cpp +--- love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp 2019-03-14 12:46:55.032982224 -0400 ++++ love-HEAD.new/src/modules/graphics/opengl/Framebuffer.cpp 2019-03-14 12:47:22.356175299 -0400 +@@ -1,3 +1,5 @@ ++#define GL_GLEXT_PROTOTYPES ++ + #include "Framebuffer.h" + #include + +diff --unified --recursive --text love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp love-HEAD.new/src/modules/graphics/opengl/SpriteBatch.cpp +--- love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp 2019-03-14 12:46:55.032982224 -0400 ++++ love-HEAD.new/src/modules/graphics/opengl/SpriteBatch.cpp 2019-03-14 12:47:33.346119890 -0400 +@@ -18,6 +18,8 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES ++ + #include "SpriteBatch.h" + + // STD diff --git a/games-engines/love/files/love-0.8.0-glext.patch b/games-engines/love/files/love-0.8.0-glext.patch new file mode 100644 index 000000000..63d77bd82 --- /dev/null +++ b/games-engines/love/files/love-0.8.0-glext.patch @@ -0,0 +1,61 @@ +diff --git a/src/modules/graphics/opengl/Canvas.cpp b/src/modules/graphics/opengl/Canvas.cpp +index a24dd96..3bd8fb6 100644 +--- a/src/modules/graphics/opengl/Canvas.cpp ++++ b/src/modules/graphics/opengl/Canvas.cpp +@@ -18,6 +18,7 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES + #include "Canvas.h" + #include "Graphics.h" + #include +diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp +index 922d195..68c464b 100644 +--- a/src/modules/graphics/opengl/Graphics.cpp ++++ b/src/modules/graphics/opengl/Graphics.cpp +@@ -22,6 +22,7 @@ + #include + #include + ++#define GL_GLEXT_PROTOTYPES + #include "Graphics.h" + #include + +diff --git a/src/modules/graphics/opengl/PixelEffect.cpp b/src/modules/graphics/opengl/PixelEffect.cpp +index 5ee6db9..bd988ea 100644 +--- a/src/modules/graphics/opengl/PixelEffect.cpp ++++ b/src/modules/graphics/opengl/PixelEffect.cpp +@@ -17,6 +17,7 @@ + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + **/ ++#define GL_GLEXT_PROTOTYPES + + #include "PixelEffect.h" + #include "GLee.h" +diff --git a/src/modules/graphics/opengl/SpriteBatch.cpp b/src/modules/graphics/opengl/SpriteBatch.cpp +index c645b91..5066886 100644 +--- a/src/modules/graphics/opengl/SpriteBatch.cpp ++++ b/src/modules/graphics/opengl/SpriteBatch.cpp +@@ -18,6 +18,7 @@ + * 3. This notice may not be removed or altered from any source distribution. + **/ + ++#define GL_GLEXT_PROTOTYPES + #include "SpriteBatch.h" + + // STD +diff --git a/src/modules/graphics/opengl/VertexBuffer.cpp b/src/modules/graphics/opengl/VertexBuffer.cpp +index 98b7427..fa9e1d5 100644 +--- a/src/modules/graphics/opengl/VertexBuffer.cpp ++++ b/src/modules/graphics/opengl/VertexBuffer.cpp +@@ -17,7 +17,7 @@ + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. + **/ +- ++#define GL_GLEXT_PROTOTYPES + #include "VertexBuffer.h" + + #include "common/Exception.h" diff --git a/games-engines/love/love-0.7.2-r3.ebuild b/games-engines/love/love-0.7.2-r3.ebuild index 724387b12..8279c31bf 100644 --- a/games-engines/love/love-0.7.2-r3.ebuild +++ b/games-engines/love/love-0.7.2-r3.ebuild @@ -32,6 +32,7 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${PN}-HEAD" PATCHES=( "${FILESDIR}"/${PN}-0.8.0-freetype2.patch + "${FILESDIR}"/${PN}-0.7.2-glext.patch "${FILESDIR}"/${PN}-0.8.0-pthread.patch ) src_install() { diff --git a/games-engines/love/love-0.8.0-r3.ebuild b/games-engines/love/love-0.8.0-r3.ebuild index d1ef08c9f..45be04cb2 100644 --- a/games-engines/love/love-0.8.0-r3.ebuild +++ b/games-engines/love/love-0.8.0-r3.ebuild @@ -30,6 +30,7 @@ DEPEND="${RDEPEND} " PATCHES=( "${FILESDIR}"/${P}-freetype2.patch + "${FILESDIR}"/${PN}-0.8.0-glext.patch "${FILESDIR}"/${P}-pthread.patch ) src_install() {