blob: 9a0c3260cf3e15cc9ef6725ad52a2e15c40e3fab (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.11.ebuild,v 1.11 2006/10/11 19:35:37 corsair Exp $
WANT_AUTOMAKE=latest
WANT_AUTOCONF=latest
inherit libtool autotools eutils
DESCRIPTION="ALSA extra plugins"
HOMEPAGE="http://www.alsa-project.org/"
SRC_URI="mirror://alsaproject/plugins/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm hppa ppc ppc64 ~sh sparc ~x86"
IUSE="jack ffmpeg libsamplerate"
# It could support polypaudio if it was in portage
RDEPEND=">=media-libs/alsa-lib-1.0.11
jack? ( >=media-sound/jack-audio-connection-kit-0.98 )
ffmpeg? ( media-video/ffmpeg )
libsamplerate? ( media-libs/libsamplerate )
!media-plugins/alsa-jack"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-automagic.patch"
eautoreconf
elibtoolize
}
src_compile() {
econf \
$(use_enable jack) \
$(use_enable libsamplerate samplerate) \
$(use_enable ffmpeg avcodec) \
--disable-polypaudio \
--disable-dependency-tracking \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install
cd "${S}/doc"
dodoc upmix.txt vdownmix.txt README-pcm-oss
use jack && dodoc README-jack
use libsamplerate && dodoc samplerate.txt
}
|