This commit is contained in:
parent
72f56cfe6b
commit
cc0bb03348
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a2a2a9d98e6b59fe5be10ef5748b068cc7fda3fdaff2d49d27cc65f55655ed8d
|
|
||||||
size 1916921
|
|
@ -1,5 +1,5 @@
|
|||||||
--- SDL_mixer-1.2.7/timidity/config.h
|
--- timidity/config.h
|
||||||
+++ SDL_mixer-1.2.7/timidity/config.h
|
+++ timidity/config.h
|
||||||
@@ -176,7 +176,7 @@
|
@@ -176,7 +176,7 @@
|
||||||
#if defined(__WIN32__) || defined(__OS2__)
|
#if defined(__WIN32__) || defined(__OS2__)
|
||||||
#define DEFAULT_PATH "\\TIMIDITY"
|
#define DEFAULT_PATH "\\TIMIDITY"
|
3
SDL_mixer-1.2.8.tar.bz2
Normal file
3
SDL_mixer-1.2.8.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:27b0812ed147de6d07f0a154dd63b57ea485f6a9c40600b683b19eed3e124c48
|
||||||
|
size 2012131
|
@ -1,13 +0,0 @@
|
|||||||
--- configure.in
|
|
||||||
+++ configure.in
|
|
||||||
@@ -155,7 +155,9 @@
|
|
||||||
printf("no\n*** libmikmod is older than %d.%d.%d, not using.\n",maj,min,rev);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
-],,CFLAGS="$CFLAGS_SAVED";LIBS="$LIBS_SAVED",
|
|
||||||
+],
|
|
||||||
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`";EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`",
|
|
||||||
+ CFLAGS="$CFLAGS_SAVED";LIBS="$LIBS_SAVED",
|
|
||||||
[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
|
||||||
fi
|
|
||||||
fi
|
|
@ -1,28 +0,0 @@
|
|||||||
--- timidity/common.c
|
|
||||||
+++ timidity/common.c
|
|
||||||
@@ -104,7 +104,6 @@
|
|
||||||
FILE *fp;
|
|
||||||
PathList *plp;
|
|
||||||
int l;
|
|
||||||
- static int firsttime=1;
|
|
||||||
|
|
||||||
if (!name || !(*name))
|
|
||||||
{
|
|
||||||
@@ -113,10 +112,9 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef DEFAULT_PATH
|
|
||||||
- if (firsttime && (pathlist==NULL)) {
|
|
||||||
+ if (pathlist==NULL) {
|
|
||||||
/* Generate path list */
|
|
||||||
add_to_pathlist(DEFAULT_PATH);
|
|
||||||
- firsttime=0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -244,4 +242,5 @@
|
|
||||||
free(plp);
|
|
||||||
plp = next_plp;
|
|
||||||
}
|
|
||||||
+ pathlist = NULL;
|
|
||||||
}
|
|
@ -1,54 +0,0 @@
|
|||||||
--- effect_position.c
|
|
||||||
+++ effect_position.c
|
|
||||||
@@ -373,16 +373,17 @@
|
|
||||||
|
|
||||||
for (i = 0; i < len; i += sizeof (Uint32)) {
|
|
||||||
#if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
|
|
||||||
- *(p++) = (d[l[(*p & 0xFF000000) >> 24]] << 24) |
|
|
||||||
- (d[r[(*p & 0x00FF0000) >> 16]] << 16) |
|
|
||||||
- (d[l[(*p & 0x0000FF00) >> 8]] << 8) |
|
|
||||||
- (d[r[(*p & 0x000000FF) ]] ) ;
|
|
||||||
+ *p = (d[l[(*p & 0xFF000000) >> 24]] << 24) |
|
|
||||||
+ (d[r[(*p & 0x00FF0000) >> 16]] << 16) |
|
|
||||||
+ (d[l[(*p & 0x0000FF00) >> 8]] << 8) |
|
|
||||||
+ (d[r[(*p & 0x000000FF) ]] ) ;
|
|
||||||
#else
|
|
||||||
- *(p++) = (d[r[(*p & 0xFF000000) >> 24]] << 24) |
|
|
||||||
- (d[l[(*p & 0x00FF0000) >> 16]] << 16) |
|
|
||||||
- (d[r[(*p & 0x0000FF00) >> 8]] << 8) |
|
|
||||||
- (d[l[(*p & 0x000000FF) ]] ) ;
|
|
||||||
+ *p = (d[r[(*p & 0xFF000000) >> 24]] << 24) |
|
|
||||||
+ (d[l[(*p & 0x00FF0000) >> 16]] << 16) |
|
|
||||||
+ (d[r[(*p & 0x0000FF00) >> 8]] << 8) |
|
|
||||||
+ (d[l[(*p & 0x000000FF) ]] ) ;
|
|
||||||
#endif
|
|
||||||
+ p++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -563,16 +564,17 @@
|
|
||||||
|
|
||||||
for (i = 0; i < len; i += sizeof (Uint32)) {
|
|
||||||
#if (SDL_BYTEORDER == SDL_BIG_ENDIAN)
|
|
||||||
- *(p++) = (d[l[((Sint16)(Sint8)((*p & 0xFF000000) >> 24))+128]] << 24) |
|
|
||||||
- (d[r[((Sint16)(Sint8)((*p & 0x00FF0000) >> 16))+128]] << 16) |
|
|
||||||
- (d[l[((Sint16)(Sint8)((*p & 0x0000FF00) >> 8))+128]] << 8) |
|
|
||||||
- (d[r[((Sint16)(Sint8)((*p & 0x000000FF) ))+128]] ) ;
|
|
||||||
+ *p = (d[l[((Sint16)(Sint8)((*p & 0xFF000000) >> 24))+128]] << 24) |
|
|
||||||
+ (d[r[((Sint16)(Sint8)((*p & 0x00FF0000) >> 16))+128]] << 16) |
|
|
||||||
+ (d[l[((Sint16)(Sint8)((*p & 0x0000FF00) >> 8))+128]] << 8) |
|
|
||||||
+ (d[r[((Sint16)(Sint8)((*p & 0x000000FF) ))+128]] ) ;
|
|
||||||
#else
|
|
||||||
- *(p++) = (d[r[((Sint16)(Sint8)((*p & 0xFF000000) >> 24))+128]] << 24) |
|
|
||||||
- (d[l[((Sint16)(Sint8)((*p & 0x00FF0000) >> 16))+128]] << 16) |
|
|
||||||
- (d[r[((Sint16)(Sint8)((*p & 0x0000FF00) >> 8))+128]] << 8) |
|
|
||||||
- (d[l[((Sint16)(Sint8)((*p & 0x000000FF) ))+128]] ) ;
|
|
||||||
+ *p = (d[r[((Sint16)(Sint8)((*p & 0xFF000000) >> 24))+128]] << 24) |
|
|
||||||
+ (d[l[((Sint16)(Sint8)((*p & 0x00FF0000) >> 16))+128]] << 16) |
|
|
||||||
+ (d[r[((Sint16)(Sint8)((*p & 0x0000FF00) >> 8))+128]] << 8) |
|
|
||||||
+ (d[l[((Sint16)(Sint8)((*p & 0x000000FF) ))+128]] ) ;
|
|
||||||
#endif
|
|
||||||
+ p++;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 25 18:24:14 CEST 2007 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- updated to 1.2.8
|
||||||
|
* improved detection of Ogg Vorbis and Tremor libraries
|
||||||
|
* fixed memory leaks in Effects API
|
||||||
|
* added support for MP3 playback with libmad (for GPL projects only!)
|
||||||
|
* fixed the final loop of audio samples of a certain size
|
||||||
|
* added support for Ogg Vorbis playback with Tremor (an integer decoder)
|
||||||
|
* fixed memory corruption in timidity resampling code
|
||||||
|
* fixed building SDL_mixer with SDL 1.3 pre-release
|
||||||
|
* fixed compiling both timidity and native midi in the same build
|
||||||
|
* added volume control to playmus
|
||||||
|
* fixed linking with system libmikmod
|
||||||
|
* corrected no-op conditions in SetDistance(), SetPanning() and SetPosition()
|
||||||
|
* fixed copy/paste errors in channel amplitudes
|
||||||
|
- dropped obsoleted patch:
|
||||||
|
* timidity-crash.patch (included in update)
|
||||||
|
* warn.patch (included in update)
|
||||||
|
* libmikmod.patch (included in update)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jul 22 18:59:22 CEST 2007 - aj@suse.de
|
Sun Jul 22 18:59:22 CEST 2007 - aj@suse.de
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package SDL_mixer (Version 1.2.7)
|
# spec file for package SDL_mixer (Version 1.2.8)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
@ -13,17 +13,13 @@
|
|||||||
Name: SDL_mixer
|
Name: SDL_mixer
|
||||||
BuildRequires: SDL-devel libmikmod-devel libogg-devel libvorbis-devel xorg-x11-libX11-devel
|
BuildRequires: SDL-devel libmikmod-devel libogg-devel libvorbis-devel xorg-x11-libX11-devel
|
||||||
Summary: Sample Mixer Library for SDL
|
Summary: Sample Mixer Library for SDL
|
||||||
Obsoletes: sdlmixer
|
Version: 1.2.8
|
||||||
Version: 1.2.7
|
Release: 1
|
||||||
Release: 76
|
|
||||||
License: LGPL v2 or later
|
License: LGPL v2 or later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Patch: %{name}-timidity_cfg.patch
|
Patch0: %{name}-%{version}-timidity_cfg.patch
|
||||||
Patch1: SDL_mixer-64bit-fix.dif
|
Patch1: %{name}-%{version}-64bit-fix.patch
|
||||||
Patch2: SDL_mixer-warn.dif
|
|
||||||
Patch3: SDL_mixer-libmikmod.patch
|
|
||||||
Patch4: SDL_mixer-timidity-crash.patch
|
|
||||||
URL: http://www.libsdl.org/projects/SDL_mixer/
|
URL: http://www.libsdl.org/projects/SDL_mixer/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%package devel
|
%package devel
|
||||||
@ -48,37 +44,23 @@ Timidity MIDI, and SMPEG MP3 libraries.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
|
||||||
%patch3
|
|
||||||
%patch4
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
|
||||||
if [ -f /usr/%_lib/libsmpeg.so ] ; then
|
|
||||||
CONF_ARGS="--enable-music-mp3=yes"
|
|
||||||
else
|
|
||||||
CONF_ARGS="--enable-music-mp3=no"
|
|
||||||
fi
|
|
||||||
%configure \
|
%configure \
|
||||||
--enable-music-libmikmod $CONF_ARGS
|
--enable-music-libmikmod
|
||||||
grep '^CFLAGS =.*-DUSE_TIMIDITY_MIDI' Makefile || true
|
|
||||||
grep '^CFLAGS =.*-DOGG_MUSIC' Makefile || true
|
|
||||||
grep '^CFLAGS =.*-DMP3_MUSIC' Makefile || true
|
|
||||||
make %{?jobs:-j %jobs}
|
make %{?jobs:-j %jobs}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install install-bin DESTDIR=%buildroot
|
make install install-bin DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %buildroot
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post -p /sbin/ldconfig
|
||||||
%run_ldconfig
|
|
||||||
|
|
||||||
%postun
|
%postun -p /sbin/ldconfig
|
||||||
%run_ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -88,12 +70,30 @@ rm -rf %buildroot
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/SDL/*
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
%{_libdir}/*.la
|
%{_libdir}/*.la
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_includedir}/SDL/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 25 2007 - prusnak@suse.cz
|
||||||
|
- updated to 1.2.8
|
||||||
|
* improved detection of Ogg Vorbis and Tremor libraries
|
||||||
|
* fixed memory leaks in Effects API
|
||||||
|
* added support for MP3 playback with libmad (for GPL projects only!)
|
||||||
|
* fixed the final loop of audio samples of a certain size
|
||||||
|
* added support for Ogg Vorbis playback with Tremor (an integer decoder)
|
||||||
|
* fixed memory corruption in timidity resampling code
|
||||||
|
* fixed building SDL_mixer with SDL 1.3 pre-release
|
||||||
|
* fixed compiling both timidity and native midi in the same build
|
||||||
|
* added volume control to playmus
|
||||||
|
* fixed linking with system libmikmod
|
||||||
|
* corrected no-op conditions in SetDistance(), SetPanning() and SetPosition()
|
||||||
|
* fixed copy/paste errors in channel amplitudes
|
||||||
|
- dropped obsoleted patch:
|
||||||
|
* timidity-crash.patch (included in update)
|
||||||
|
* warn.patch (included in update)
|
||||||
|
* libmikmod.patch (included in update)
|
||||||
* Sun Jul 22 2007 - aj@suse.de
|
* Sun Jul 22 2007 - aj@suse.de
|
||||||
- Cleanup BuildRequires.
|
- Cleanup BuildRequires.
|
||||||
* Sun Apr 15 2007 - dmueller@suse.de
|
* Sun Apr 15 2007 - dmueller@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user