blob: d697cf11e1c7530c0aa2950680cc935c4c6a344e (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libfishsound/libfishsound-1.0.0.ebuild,v 1.1 2010/03/11 10:56:57 ssuominen Exp $
EAPI=2
DESCRIPTION="Simple programming interface for decoding and encoding audio data using vorbis or speex"
HOMEPAGE="http://www.xiph.org/fishsound/"
SRC_URI="http://downloads.xiph.org/releases/libfishsound/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="flac speex"
RDEPEND="media-libs/libvorbis
media-libs/libogg
flac? ( media-libs/flac )
speex? ( media-libs/speex )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_prepare() {
sed -i \
-e 's:doxygen:doxygen-dummy:' \
configure || die
}
src_configure() {
local myconf=""
use flac || myconf="${myconf} --disable-flac"
use speex || myconf="${myconf} --disable-speex"
econf \
--disable-dependency-tracking \
${myconf}
}
src_install() {
emake DESTDIR="${D}" \
docdir="${D}/usr/share/doc/${PF}" install || die
dodoc AUTHORS ChangeLog README
}
|