blob: 324f0fd463c38658c280744000e176e13bf9832b (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/akode/akode-2.0.1-r1.ebuild,v 1.7 2007/10/14 10:08:08 armin76 Exp $
WANT_AUTOMAKE="1.9"
WANT_AUTOCONF="2.5"
inherit eutils autotools
MY_P=${P/_beta/b}
S=${WORKDIR}/${MY_P}
DESCRIPTION="A simple framework to decode the most common audio formats."
HOMEPAGE="http://www.carewolf.com/"
#SRC_URI="http://www.carewolf.com/akode/${MY_P}.tar.gz"
SRC_URI="http://www.kde-apps.org/content/files/30375-${P}.tar.bz2
mirror://gentoo/${P}+flac-1.1.3.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE="alsa jack flac mp3 oss speex vorbis"
DEPEND="media-libs/libsamplerate
alsa? ( media-libs/alsa-lib )
jack? ( media-sound/jack-audio-connection-kit )
flac? ( >=media-libs/flac-1.1.2 )
mp3? ( media-libs/libmad )
vorbis? ( media-libs/libvorbis )
speex? ( media-libs/speex )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-alsa-tests.patch"
epatch "${WORKDIR}/${P}+flac-1.1.3.patch"
epatch "${WORKDIR}/${P}+flac-1.1.3-2.patch"
epatch "${WORKDIR}/${P}-ogglflac-1.1.3.patch"
sed -i -e '/case $AUTO\(CONF\|HEADER\)_VERSION in/,+1 s/2\.5/2.[56]/g' \
admin/cvs.sh
emake -j1 -f admin/Makefile.common || die "unable to regenerate configure"
elibtoolize
}
src_compile() {
local myconf="--with-libsamplerate
$(use_with oss) $(use_with alsa) $(use_with jack)
$(use_with flac) $(use_with mp3 libmad)
$(use_with vorbis) $(use_with speex)
--without-polypaudio"
econf ${myconf} || die
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README
}
|