diff --git a/ags-sdl2_sound.patch b/ags-sdl2_sound.patch new file mode 100644 index 0000000..57bd3e0 --- /dev/null +++ b/ags-sdl2_sound.patch @@ -0,0 +1,14 @@ +diff -up ags-3.6.0.56/Engine/Makefile-defs.linux.sdl2_sound ags-3.6.0.56/Engine/Makefile-defs.linux +--- ags-3.6.0.56/Engine/Makefile-defs.linux.sdl2_sound 2024-01-19 17:37:12.929782340 +0100 ++++ ags-3.6.0.56/Engine/Makefile-defs.linux 2024-01-19 17:47:24.587125274 +0100 +@@ -30,8 +30,8 @@ else + endif + LIBS += $(shell pkg-config --libs vorbisfile) + +-SDL2_SOUND_CFLAGS = $(shell pkg-config --cflags SDL2_sound) +-SDL2_SOUND_LIBS = $(shell pkg-config --libs SDL2_sound) ++SDL2_SOUND_CFLAGS = $(shell pkg-config --cflags SDL2_sound || echo) ++SDL2_SOUND_LIBS = $(shell pkg-config --libs SDL2_sound || echo "-lSDL2_sound") + + SDL2_CFLAGS = $(shell sdl2-config --cflags) + SDL2_LIBS = $(shell sdl2-config --libs) diff --git a/ags.spec b/ags.spec index dbcaa0e..67f5e37 100644 --- a/ags.spec +++ b/ags.spec @@ -15,6 +15,8 @@ Version: 3.6.0.56 URL: http://www.adventuregamestudio.co.uk/site/ags/ Release: 1%{?dist} Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz +# use SDL2_sound without pkg-config +Patch0: %{name}-sdl2_sound.patch # unbundle freetype Patch2: %{name}-use-system-freetype.patch # use openal-soft @@ -67,6 +69,7 @@ since continued to be developed by contributors. %prep %setup -q +%patch0 -p1 -b .sdl2_sound %if %{with freetype} %patch2 -p1 -b .noft %endif @@ -117,6 +120,7 @@ make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install %changelog * Fri Jan 19 2024 Dominik Mierzejewski - 3.6.0.56-1 - update to 3.6.0.56 +- fix build with SDL2_sound 2.0.1 * Fri Sep 01 2023 Dominik Mierzejewski - 3.6.0.51-1 - update to 3.6.0.51