blob: 655caf20abf8fab13dd6bad211992d5603e6d04f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libsoundtouch/libsoundtouch-1.3.1-r1.ebuild,v 1.3 2007/03/30 19:41:15 grobian Exp $
inherit autotools
IUSE="sse"
MY_P="${P/lib}"
DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates."
HOMEPAGE="http://www.surina.net/soundtouch/"
SRC_URI="http://www.surina.net/soundtouch/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
DEPEND=""
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-Makefile.patch
eautoreconf
# Bug #148695
use sse \
|| sed -i -e '/^.*#define ALLOW_OPTIMIZATIONS.*$/d' "${S}"/include/STTypes.h
}
src_compile() {
econf $myconf \
--enable-shared \
--disable-integer-samples \
|| die "./configure failed"
# fixes C(XX)FLAGS from configure, so we can use *ours*
emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "emake failed"
}
src_install() {
make DESTDIR="${D}" pkgdocdir="/usr/share/doc/${PF}" install || die
rm -f ${D}/usr/share/doc/${PF}/COPYING.TXT # remove obsolete LICENCE file
}
|