mirror of
https://abf.rosa.ru/djam/SDL2_mixer.git
synced 2025-02-23 06:42:49 +00:00
Automatic import for version 2.0.0-1
This commit is contained in:
commit
d871cef9cb
3 changed files with 121 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
"SDL2_mixer-2.0.0.tar.gz": 9ed975587f09a1776ba9776dcc74a58e695aba6e
|
93
SDL2_mixer.spec
Normal file
93
SDL2_mixer.spec
Normal file
|
@ -0,0 +1,93 @@
|
|||
%define major 0
|
||||
%define api 2.0
|
||||
%define libname %mklibname %{name} %{api} %{major}
|
||||
%define devname %mklibname %{name} -d
|
||||
|
||||
Summary: Simple DirectMedia Layer 2 - mixer
|
||||
Name: SDL2_mixer
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
License: Zlib
|
||||
Group: System/Libraries
|
||||
Url: http://www.libsdl.org/projects/SDL_mixer/
|
||||
Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
|
||||
Patch0: sdl2_mixer-2.0.0-mga-libmodplug-includes.patch
|
||||
BuildRequires: libmikmod-devel
|
||||
BuildRequires: pkgconfig(flac)
|
||||
BuildRequires: pkgconfig(fluidsynth)
|
||||
BuildRequires: pkgconfig(libmodplug)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(vorbis)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
%description
|
||||
SDL2_mixer is a sample multi-channel audio mixer library. It supports any
|
||||
number of simultaneously playing channels of 16 bit stereo audio, plus a
|
||||
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI
|
||||
and SMPEG MP3 libraries.
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{libname}
|
||||
Summary: Main library for %{name}
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libname}
|
||||
This package contains the library needed to run programs dynamically
|
||||
linked with %{name}.
|
||||
|
||||
%files -n %{libname}
|
||||
%doc COPYING.txt
|
||||
%doc timidity/FAQ timidity/README
|
||||
%{_libdir}/lib%{name}-%{api}.so.%{major}*
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{devname}
|
||||
Summary: Headers for developing programs that will use %{name}
|
||||
Group: Development/C
|
||||
Requires: %{libname} = %{EVRD}
|
||||
Provides: %{name}-devel = %{EVRD}
|
||||
|
||||
%description -n %{devname}
|
||||
This package contains the headers that programmers will need to develop
|
||||
applications which will use %{name}.
|
||||
|
||||
%files -n %{devname}
|
||||
%doc README.txt CHANGES.txt
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/SDL2/*
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%package -n %{name}-player
|
||||
Summary: Players using %{name}
|
||||
Group: System/Libraries
|
||||
Conflicts: SDL_mixer-player
|
||||
|
||||
%description -n %{name}-player
|
||||
This package contains binary to test the associated library.
|
||||
|
||||
%files -n %{name}-player
|
||||
%doc README.txt
|
||||
%{_bindir}/playwave
|
||||
%{_bindir}/playmus
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure2_5x \
|
||||
--disable-static \
|
||||
--enable-music-mod \
|
||||
--disable-music-ogg-shared \
|
||||
--disable-music-flac-shared
|
||||
%make
|
||||
|
||||
%install
|
||||
%makeinstall_std install-bin
|
||||
|
26
sdl2_mixer-2.0.0-mga-libmodplug-includes.patch
Normal file
26
sdl2_mixer-2.0.0-mga-libmodplug-includes.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
Index: SDL2_mixer-2.0.0/dynamic_modplug.h
|
||||
===================================================================
|
||||
--- SDL2_mixer-2.0.0/dynamic_modplug.h
|
||||
+++ SDL2_mixer-2.0.0/dynamic_modplug.h 2014-05-13 22:53:02.198745219 +0200
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#ifdef MODPLUG_MUSIC
|
||||
|
||||
-#include "modplug.h"
|
||||
+#include "libmodplug/modplug.h"
|
||||
|
||||
typedef struct {
|
||||
int loaded;
|
||||
Index: SDL2_mixer-2.0.0/music_modplug.h
|
||||
===================================================================
|
||||
--- SDL2_mixer-2.0.0/music_modplug.h
|
||||
+++ SDL2_mixer-2.0.0/music_modplug.h 2014-05-13 22:52:56.821999369 +0200
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#ifdef MODPLUG_MUSIC
|
||||
|
||||
-#include "modplug.h"
|
||||
+#include "libmodplug/modplug.h"
|
||||
#include "SDL_rwops.h"
|
||||
#include "SDL_audio.h"
|
||||
#include "SDL_mixer.h"
|
Loading…
Add table
Reference in a new issue