mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #65957 from ysndr/fix/love_0_7
Add dependency and patch files (refs: #65786)
This commit is contained in:
commit
735ca8b841
21
pkgs/development/interpreters/love/0.7-gl-prototypes.patch
Normal file
21
pkgs/development/interpreters/love/0.7-gl-prototypes.patch
Normal file
@ -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 <common/Matrix.h>
|
||||
|
||||
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
|
@ -2,6 +2,7 @@
|
||||
, SDL, libGLU_combined, openal, lua
|
||||
, libdevil, freetype, physfs
|
||||
, libmodplug, mpg123, libvorbis, libogg
|
||||
, libmng
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -11,10 +12,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0s7jywkvydlshlgy11ilzngrnybmq5xlgzp2v2dhlffwrfqdqym5";
|
||||
};
|
||||
|
||||
# see discussion on arch linux user repository (https://aur.archlinux.org/packages/love07/?setlang=cs#comment-684696)
|
||||
patches = [ ./0.7-gl-prototypes.patch ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [
|
||||
SDL libGLU_combined openal lua
|
||||
libdevil freetype physfs libmodplug mpg123 libvorbis libogg
|
||||
libdevil freetype physfs libmodplug mpg123 libvorbis libogg libmng
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
|
Loading…
Reference in New Issue
Block a user