From: Jakub Bogusz Date: Sun, 18 May 2014 14:06:40 +0000 (+0200) Subject: - adjusted mikmod/modplug options to configure defaults X-Git-Tag: auto/th/SDL2_mixer-2.0.0-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=5791969b9896e0093fe178ee9bd94a18e6cda28b;p=packages%2FSDL2_mixer.git - adjusted mikmod/modplug options to configure defaults - added modplug patch (fixes build with libmodplug 0.8.8.5) --- diff --git a/SDL2_mixer-modplug.patch b/SDL2_mixer-modplug.patch new file mode 100644 index 0000000..025a1e2 --- /dev/null +++ b/SDL2_mixer-modplug.patch @@ -0,0 +1,22 @@ +--- SDL2_mixer-2.0.0/dynamic_modplug.h.orig 2013-08-10 19:39:55.000000000 +0200 ++++ SDL2_mixer-2.0.0/dynamic_modplug.h 2014-05-18 15:26:58.160352992 +0200 +@@ -21,7 +21,7 @@ + + #ifdef MODPLUG_MUSIC + +-#include "modplug.h" ++#include + + typedef struct { + int loaded; +--- SDL2_mixer-2.0.0/music_modplug.h.orig 2013-08-10 19:39:58.000000000 +0200 ++++ SDL2_mixer-2.0.0/music_modplug.h 2014-05-18 15:27:28.020352567 +0200 +@@ -21,7 +21,7 @@ + + #ifdef MODPLUG_MUSIC + +-#include "modplug.h" ++#include + #include "SDL_rwops.h" + #include "SDL_audio.h" + #include "SDL_mixer.h" diff --git a/SDL2_mixer.spec b/SDL2_mixer.spec index ef0e657..2e06c7b 100644 --- a/SDL2_mixer.spec +++ b/SDL2_mixer.spec @@ -1,7 +1,15 @@ # # Conditional build: -%bcond_with modplug # use modplug for MOD support (mikmod is used by default) +%bcond_with mikmod # mikmod use for MOD support (modplug is used by default) +%bcond_without modplug # modplug use for MOD support # +# NOTE: sonames detected at build time for: +# libflac +# libfluidsynth +# libmikmod +# libmodplug +# libsmpeg2 +# libvorbisfile Summary: Simple DirectMedia Layer - Sample Mixer Library Summary(pl.UTF-8): Simple DirectMedia Layer - biblioteka miksująca próbki dźwiękowe Summary(pt_BR.UTF-8): SDL2 - Biblioteca para mixagem @@ -12,17 +20,23 @@ License: Zlib-like Group: Libraries Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz # Source0-md5: 65f6d80df073a1fb3bb537fbda031b50 +Patch0: %{name}-modplug.patch URL: http://www.libsdl.org/projects/SDL_mixer/ BuildRequires: SDL2-devel >= 2.0.0 BuildRequires: autoconf BuildRequires: automake BuildRequires: flac-devel >= 1.3.0 +BuildRequires: fluidsynth-devel BuildRequires: libtool >= 2:2.0 -BuildRequires: libmikmod-devel >= 3.1.10 -%{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.7} +%{?with_mikmod:BuildRequires: libmikmod-devel >= 3.1.10} +%{?with_modplug:BuildRequires: libmodplug-devel >= 0.8.8} +BuildRequires: libogg-devel BuildRequires: libvorbis-devel >= 1:1.0 -BuildRequires: smpeg-devel >= 0.4.4-11 +BuildRequires: pkgconfig >= 1:0.9.0 +BuildRequires: smpeg2-devel >= 2.0.0 Requires: SDL2 >= 2.0.0 +%{?with_mikmod:Suggests: libmikmod >= 3.1.10} +%{?with_modplug:Suggests: libmodplug >= 0.8.8} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -77,14 +91,17 @@ Bibliotecas estáticas para desenvolvimento com SDL2_mixer. %prep %setup -q +%patch0 -p1 + +%{__rm} acinclude/{libtool,lt*}.m4 %build -#%{__libtoolize} +%{__libtoolize} %{__aclocal} -I acinclude %{__autoconf} %configure \ - --enable-music-midi-fluidsynth \ - %{?with_modplug:--enable-music-mod-modplug} + %{?with_mikmod:--enable-music-mod-mikmod} \ + %{!?with_modplug:--disable-music-mod-modplug} %{__make} %install