forked from pool/soundtouch
This commit is contained in:
parent
16dc95c1fd
commit
b720bab561
8
soundtouch-autoreconf-fix.diff
Normal file
8
soundtouch-autoreconf-fix.diff
Normal file
@ -0,0 +1,8 @@
|
||||
--- Makefile.am-dist 2007-07-04 14:27:09.000000000 +0200
|
||||
+++ Makefile.am 2007-07-04 14:27:40.000000000 +0200
|
||||
@@ -67,4 +67,5 @@
|
||||
|
||||
# flag to aclocal where to find m4 macros for tests
|
||||
ACLOCAL_AMFLAGS = -I config/m4
|
||||
+AUTOMAKE_OPTIONS = foreign
|
||||
|
17
soundtouch-no-sse.diff
Normal file
17
soundtouch-no-sse.diff
Normal file
@ -0,0 +1,17 @@
|
||||
--- source/SoundTouch/Makefile.am-dist 2007-07-04 13:14:09.000000000 +0200
|
||||
+++ source/SoundTouch/Makefile.am 2007-07-04 14:15:55.000000000 +0200
|
||||
@@ -30,12 +30,12 @@
|
||||
|
||||
lib_LTLIBRARIES=libSoundTouch.la
|
||||
# the mmx_gcc.cpp and cpu_detect_x86_gcc.cpp may need to be conditionally included here from things discovered in configure.ac
|
||||
-libSoundTouch_la_SOURCES=AAFilter.cpp FIRFilter.cpp FIFOSampleBuffer.cpp mmx_optimized.cpp sse_optimized.cpp RateTransposer.cpp SoundTouch.cpp TDStretch.cpp cpu_detect_x86_gcc.cpp
|
||||
+libSoundTouch_la_SOURCES=AAFilter.cpp FIRFilter.cpp FIFOSampleBuffer.cpp RateTransposer.cpp SoundTouch.cpp TDStretch.cpp cpu_detect_x86_gcc.cpp
|
||||
|
||||
|
||||
# ??? test for -fcheck-new in configure.ac
|
||||
# other compiler flags to add
|
||||
-AM_CXXFLAGS=-O3 -msse -fcheck-new -I../../include
|
||||
+AM_CXXFLAGS=-O3 -fcheck-new -I../../include
|
||||
|
||||
# other linking flags to add
|
||||
#libSoundTouch_la_LIBADD=
|
14
soundtouch-sse-automake-add.diff
Normal file
14
soundtouch-sse-automake-add.diff
Normal file
@ -0,0 +1,14 @@
|
||||
--- source/SoundTouch/Makefile.am-dist 2007-07-04 14:25:01.000000000 +0200
|
||||
+++ source/SoundTouch/Makefile.am 2007-07-04 14:23:43.000000000 +0200
|
||||
@@ -37,6 +37,11 @@
|
||||
# other compiler flags to add
|
||||
AM_CXXFLAGS=-O3 -fcheck-new -I../../include
|
||||
|
||||
+noinst_LTLIBRARIES = libSoundTouchOpt.la
|
||||
+libSoundTouch_la_LIBADD = libSoundTouchOpt.la
|
||||
+libSoundTouchOpt_la_SOURCES = mmx_optimized.cpp sse_optimized.cpp
|
||||
+libSoundTouchOpt_la_CXXFLAGS = -O3 -msse2 -fcheck-new -I../../include
|
||||
+
|
||||
# other linking flags to add
|
||||
#libSoundTouch_la_LIBADD=
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 4 14:33:27 CEST 2007 - tiwai@suse.de
|
||||
|
||||
- fix build with the recent gcc
|
||||
- fix build on architectures without SSE
|
||||
- fix Makefile.am and removed hacks for autoreconf in spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 21 13:15:26 CEST 2007 - sbrabec@suse.cz
|
||||
|
||||
|
@ -11,15 +11,18 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: soundtouch
|
||||
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||||
License: LGPL v2 or later
|
||||
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
||||
URL: http://www.surina.net/soundtouch
|
||||
Summary: Audio Processing Library
|
||||
Version: 1.3.1
|
||||
Release: 1
|
||||
Release: 3
|
||||
BuildRequires: gcc-c++ libstdc++
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Patch: soundtouch-keep-flags.patch
|
||||
Patch1: soundtouch-no-sse.diff
|
||||
Patch2: soundtouch-sse-automake-add.diff
|
||||
Patch3: soundtouch-autoreconf-fix.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -52,6 +55,11 @@ Authors:
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
%patch1
|
||||
%ifarch %ix86 x86_64
|
||||
%patch2
|
||||
%endif
|
||||
%patch3
|
||||
chmod -x README.html
|
||||
for FILE in COPYING.TXT README.html ; do
|
||||
tr -d $'\r\z' <$FILE >$FILE~
|
||||
@ -59,11 +67,7 @@ for FILE in COPYING.TXT README.html ; do
|
||||
done
|
||||
|
||||
%build
|
||||
for FILE in NEWS README AUTHORS ChangeLog ; do
|
||||
echo -n "" >| $FILE
|
||||
done
|
||||
autoreconf -f -i
|
||||
rm NEWS README AUTHORS ChangeLog
|
||||
# NOTE: Upstream builds only static library. Check why.
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC"
|
||||
@ -73,6 +77,7 @@ make %{?jobs:-j%jobs} pkgdocdir=%{_docdir}/%{name}
|
||||
|
||||
%install
|
||||
%makeinstall pkgdocdir=%{_docdir}/%{name}
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -90,5 +95,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
* Wed Jul 04 2007 - tiwai@suse.de
|
||||
- fix build with the recent gcc
|
||||
- fix build on architectures without SSE
|
||||
- fix Makefile.am and removed hacks for autoreconf in spec file
|
||||
* Thu Jun 21 2007 - sbrabec@suse.cz
|
||||
- New SuSE package, version 1.3.1.
|
||||
|
Loading…
Reference in New Issue
Block a user