From c5d080d4b214dc91fea94d9aa193810b05db41e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Tue, 26 Nov 2019 16:28:32 +0300 Subject: [PATCH] =?UTF-8?q?games-engines/love:=20=D0=BF=D0=B0=D1=82=D1=87?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../love/files/love-0.7.2-glext.patch | 21 +++++++ .../love/files/love-0.8.0-glext.patch | 61 +++++++++++++++++++ games-engines/love/love-0.7.2-r3.ebuild | 1 + games-engines/love/love-0.8.0-r3.ebuild | 1 + 4 files changed, 84 insertions(+) create mode 100644 games-engines/love/files/love-0.7.2-glext.patch create mode 100644 games-engines/love/files/love-0.8.0-glext.patch 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() {