Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Dominik 'Rathann' Mierzejewski
2a04f56d48 fix build with SDL2_sound 2.0.1 2024-01-19 18:02:46 +01:00
2 changed files with 18 additions and 0 deletions

14
ags-sdl2_sound.patch Normal file
View file

@ -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)

View file

@ -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 <dominik@greysector.net> - 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 <dominik@greysector.net> - 3.6.0.51-1
- update to 3.6.0.51