summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-04-13 15:34:08 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-04-13 15:34:08 +0000
commit5c4b878210b13c44b738ad95119da483a19a77b7 (patch)
tree88e7b26c5b121a6c706fb18f936b4e61aeb898a4 /media-libs/libsoundtouch
parentupdate for bug 311779 (diff)
downloadgentoo-2-5c4b878210b13c44b738ad95119da483a19a77b7.tar.gz
gentoo-2-5c4b878210b13c44b738ad95119da483a19a77b7.tar.bz2
gentoo-2-5c4b878210b13c44b738ad95119da483a19a77b7.zip
Version bump wrt #312957 by Wilfried Holzke.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libsoundtouch')
-rw-r--r--media-libs/libsoundtouch/ChangeLog11
-rw-r--r--media-libs/libsoundtouch/files/libsoundtouch-1.5.0-flags_and_version.patch39
-rw-r--r--media-libs/libsoundtouch/libsoundtouch-1.5.0.ebuild53
3 files changed, 101 insertions, 2 deletions
diff --git a/media-libs/libsoundtouch/ChangeLog b/media-libs/libsoundtouch/ChangeLog
index 1fbfbd742bd5..fbbae650c205 100644
--- a/media-libs/libsoundtouch/ChangeLog
+++ b/media-libs/libsoundtouch/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libsoundtouch
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsoundtouch/ChangeLog,v 1.29 2009/07/06 09:02:03 ssuominen Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsoundtouch/ChangeLog,v 1.30 2010/04/13 15:34:08 ssuominen Exp $
+
+*libsoundtouch-1.5.0 (13 Apr 2010)
+
+ 13 Apr 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +libsoundtouch-1.5.0.ebuild,
+ +files/libsoundtouch-1.5.0-flags_and_version.patch:
+ Version bump wrt #312957 by Wilfried Holzke.
06 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
libsoundtouch-1.4.0.ebuild:
diff --git a/media-libs/libsoundtouch/files/libsoundtouch-1.5.0-flags_and_version.patch b/media-libs/libsoundtouch/files/libsoundtouch-1.5.0-flags_and_version.patch
new file mode 100644
index 000000000000..9cd8a904851f
--- /dev/null
+++ b/media-libs/libsoundtouch/files/libsoundtouch-1.5.0-flags_and_version.patch
@@ -0,0 +1,39 @@
+diff -ur soundtouch.orig/configure.ac soundtouch/configure.ac
+--- soundtouch.orig/configure.ac 2009-12-28 23:22:41.000000000 +0200
++++ soundtouch/configure.ac 2010-04-13 18:28:40.000000000 +0300
+@@ -19,7 +19,7 @@
+ dnl Place - Suite 330, Boston, MA 02111-1307, USA
+ # Process this file with autoconf to produce a configure script.
+
+-AC_INIT(SoundTouch, 1.4.0, [http://www.surina.net/soundtouch])
++AC_INIT(SoundTouch, 1.5.0, [http://www.surina.net/soundtouch])
+ AC_CONFIG_AUX_DIR(config)
+ AM_CONFIG_HEADER([include/soundtouch_config.h])
+ AM_INIT_AUTOMAKE
+diff -ur soundtouch.orig/source/SoundStretch/Makefile.am soundtouch/source/SoundStretch/Makefile.am
+--- soundtouch.orig/source/SoundStretch/Makefile.am 2009-12-28 23:22:33.000000000 +0200
++++ soundtouch/source/SoundStretch/Makefile.am 2010-04-13 18:29:53.000000000 +0300
+@@ -43,11 +43,5 @@
+ ## linker.
+ soundstretch_LDADD=../SoundTouch/libSoundTouch.la -lm
+
+-## linker flags
+-soundstretch_LDFLAGS=-s
+-
+-## additional compiler flags
+-soundstretch_CXXFLAGS=-O3
+-
+ #clean-local:
+ # -rm -f additional-files-to-remove-on-make-clean
+diff -ur soundtouch.orig/source/SoundTouch/Makefile.am soundtouch/source/SoundTouch/Makefile.am
+--- soundtouch.orig/source/SoundTouch/Makefile.am 2009-12-28 23:22:40.000000000 +0200
++++ soundtouch/source/SoundTouch/Makefile.am 2010-04-13 18:30:23.000000000 +0300
+@@ -36,7 +36,7 @@
+ # Note by authore: '-msse2' might not work in non-X86 compilations. If someone can
+ # fix this script to automatically check for CPU architecture, please submit a patch
+ # to me.
+-AM_CXXFLAGS=-O3 -msse2 -fcheck-new -I../../include
++AM_CXXFLAGS=-fcheck-new -I../../include
+
+
+ # other linking flags to add
diff --git a/media-libs/libsoundtouch/libsoundtouch-1.5.0.ebuild b/media-libs/libsoundtouch/libsoundtouch-1.5.0.ebuild
new file mode 100644
index 000000000000..6a1cd0d5ac62
--- /dev/null
+++ b/media-libs/libsoundtouch/libsoundtouch-1.5.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsoundtouch/libsoundtouch-1.5.0.ebuild,v 1.1 2010/04/13 15:34:08 ssuominen Exp $
+
+EAPI=2
+MY_PN=${PN/lib}
+inherit autotools eutils flag-o-matic multilib
+
+DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates."
+HOMEPAGE="http://www.surina.net/soundtouch/"
+SRC_URI="http://www.surina.net/soundtouch/${P/lib}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="sse2"
+
+S=${WORKDIR}/${MY_PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags_and_version.patch
+ eautoreconf
+
+ if use sse2; then
+ append-flags -msse2
+ else
+ sed -i -e '/^.*#define ALLOW_X86_OPTIMIZATIONS.*$/d' \
+ include/STTypes.h || die
+ fi
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ --disable-dependency-tracking \
+ --disable-integer-samples
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdocdir="/usr/share/doc/${PF}/html" \
+ install || die
+
+ # Upstream changed pkgconfig filename
+ dosym ${MY_PN}-1.4.pc \
+ /usr/$(get_libdir)/pkgconfig/${MY_PN}-1.0.pc || die
+
+ rm -f "${D}"/usr/share/doc/${PF}/html/COPYING.TXT
+}