shithub: choc

Download patch

ref: 3fb46e6f9ca0c66556ecb060da92b74538cc9a2e
parent: 4f62dc3216e925731d378f2e7a5253259a34c4a1
author: Fabian Greffrath <fabian@greffrath.com>
date: Tue Aug 25 07:47:36 EDT 2020

config: bump SDL2 library requirements

We are going to replace calls to the deprecated Mix_OpenAudio() API
with Mix_OpenAudioDevice() which has been added to SDL2_Mixer 2.0.2,
which in turn depends on SDL 2.0.7.

Both library versions have been released in Oct 2017.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,8 +28,8 @@
                         "-Wredundant-decls")
 endif()
 
-find_package(SDL2 2.0.1)
-find_package(SDL2_mixer 2.0.0)
+find_package(SDL2 2.0.7)
+find_package(SDL2_mixer 2.0.2)
 find_package(SDL2_net 2.0.0)
 
 # Check for libsamplerate.
--- a/configure.ac
+++ b/configure.ac
@@ -31,8 +31,8 @@
         CFLAGS="-O$OPT_LEVEL -g $WARNINGS $orig_CFLAGS"
 fi
 
-PKG_CHECK_MODULES(SDL, [sdl2 >= 2.0.1])
-PKG_CHECK_MODULES(SDLMIXER, [SDL2_mixer >= 2.0.0])
+PKG_CHECK_MODULES(SDL, [sdl2 >= 2.0.7])
+PKG_CHECK_MODULES(SDLMIXER, [SDL2_mixer >= 2.0.2])
 PKG_CHECK_MODULES(SDLNET, [SDL2_net >= 2.0.0])
 
 # Check for bash-completion.