]> git.pld-linux.org Git - packages/scummvm.git/commitdiff
fix sdl version detection with recent sdl2 releases
authorJan Palus <atler@pld-linux.org>
Sun, 11 Sep 2022 21:13:39 +0000 (23:13 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 11 Sep 2022 21:13:39 +0000 (23:13 +0200)
scummvm.spec
sdl2.patch [new file with mode: 0644]

index b6c487c3c7fad680fe1b5df531fe48eeabdd37af..ee32bb0ae353321187c676537884128910aff23f 100644 (file)
@@ -31,6 +31,7 @@ Source2:      %{name}.desktop
 Patch0:                %{name}-wx-config.patch
 Patch1:                dwarf-debug.patch
 Patch2:                fluidsynth-printf-attr.patch
+Patch3:                sdl2.patch
 URL:           http://scummvm.org/
 BuildRequires: SDL2-devel
 BuildRequires: SDL2_net-devel
@@ -1131,6 +1132,7 @@ cd scummvm-tools-%{version_tools}
 %patch0 -p2
 cd ..
 %patch2 -p1
+%patch3 -p1
 
 %{__sed} -i -e 's:"plugins":"%{_libdir}/scummvm":' base/plugins.cpp
 
diff --git a/sdl2.patch b/sdl2.patch
new file mode 100644 (file)
index 0000000..34877c9
--- /dev/null
@@ -0,0 +1,20 @@
+--- scummvm-2.5.1/configure.orig       2022-09-11 22:50:44.875895176 +0200
++++ scummvm-2.5.1/configure    2022-09-11 23:12:09.358791198 +0200
+@@ -3840,7 +3840,7 @@
+       append_var INCLUDES "$SDL_CFLAGS"
+       append_var LIBS "$SDL_LIBS"
+       case $_sdlversion in
+-              2.0.*)
++              2.*)
+                       add_line_to_config_mk "USE_SDL2 = 1"
+                       _sdlMajorVersionNumber=2
+                       ;;
+@@ -5368,7 +5368,7 @@
+                                       _opengl_mode=gl
+                                       ;;
+-                              2.0.*)
++                              2.*)
+                                       # SDL2 supports both OpenGL + OpenGL ES contexts.
+                                       # However, Mac OS X only allows OpenGL context creation at
+                                       # this time, thus we limit us to OpenGL on that platform.
This page took 0.130189 seconds and 4 git commands to generate.