blob: fd2c9edd37d7c135d570a89184ff8ef349d08520 (
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
|
# 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-0.9.2.ebuild,v 1.3 2010/03/08 06:35:48 sping Exp $
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="doc speex"
RDEPEND="media-libs/libvorbis media-libs/libogg
speex? ( media-libs/speex )"
# flac? ( media-libs/flac )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( app-doc/doxygen virtual/latex-base )"
src_unpack() {
unpack ${A}
cd "${S}"
use doc || sed -i -e "s/doxygen/doxygen-dummy/" configure
rm -rf "${S}/doc/libfishsound"
}
src_compile() {
local myconf=""
# use flac ||
# disable it for now, it causes compile failures in sonic-visualiser because
# it adds -I/usr/include/FLAC to pkgconfig cflags...
myconf="$myconf --disable-flac"
use speex || myconf="$myconf --disable-speex"
econf $myconf
emake || die "emake failed"
if use doc; then
export VARTEXFONTS="${T}/fonts"
cd "${S}/doc/libfishsound/latex"
emake refman.ps || die "failed to create refman.ps"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README
}
|