Merge pull request #213708 from logo4poop/hashlink-1.13

hashlink: 1.12 -> 1.13
This commit is contained in:
Nick Cao 2023-01-31 13:30:35 +08:00 committed by GitHub
commit 70d8e51d87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 36 deletions

View file

@ -17,17 +17,15 @@
stdenv.mkDerivation rec {
pname = "hashlink";
version = "1.12";
version = "1.13";
src = fetchFromGitHub {
owner = "HaxeFoundation";
repo = "hashlink";
rev = version;
sha256 = "AiUGhTxz4Pkrks4oE+SAuAQPMuC5T2B6jo3Jd3sNrkQ=";
sha256 = "lpHW0JWxbLtOBns3By56ZBn47CZsDzwOFBuW9MlERrE=";
};
patches = [ ./hashlink.patch ];
makeFlags = [ "PREFIX=$(out)" ];
buildInputs = [

View file

@ -1,32 +0,0 @@
--- a/Makefile
+++ b/Makefile
@@ -107,6 +107,7 @@ LIBFLAGS += -L/opt/libjpeg-turbo/lib64
endif
LIBOPENAL = -lopenal
+LIBOPENGL = -lGL
RELEASE_NAME = linux
endif
--- a/libs/sdl/gl.c
+++ b/libs/sdl/gl.c
@@ -7,7 +7,7 @@
# include <OpenGLES/ES3/gl.h>
# define HL_GLES
#elif defined(HL_MAC)
-# include <SDL.h>
+# include <SDL2/SDL.h>
# include <OpenGL/gl3.h>
# define glBindImageTexture(...) hl_error("Not supported on OSX")
# define glDispatchCompute(...) hl_error("Not supported on OSX")
--- a/libs/sdl/sdl.c
+++ b/libs/sdl/sdl.c
@@ -7,7 +7,7 @@
# include <SDL.h>
# include <SDL_syswm.h>
#elif defined(HL_MAC)
-# include <SDL.h>
+# include <SDL2/SDL.h>
#else
# include <SDL2/SDL.h>
#endif