blob: c3acae10ff3d38b9347480e6cef3c26ea5ca69ca (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/speex-1.2_beta2.ebuild,v 1.1 2007/08/27 15:01:07 drac Exp $
inherit autotools eutils
MY_P=${P/_/}
DESCRIPTION="Audio compression format designed for speech."
HOMEPAGE="http://www.speex.org"
SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="doc ogg sse vorbis-psy wideband"
RDEPEND="ogg? ( >=media-libs/libogg-1 )"
DEPEND="${RDEPEND}"
S="${WORKDIR}"/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-optional-ogg-and-cflags.patch
eautoreconf
_elibtoolize
}
src_compile() {
econf $(use_enable vorbis-psy) $(use_enable sse) \
$(use_enable ogg) $(use_enable wideband)
emake || die "emake failed."
}
src_install () {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog NEWS README* TODO
# Install manual.pdf to correct location.
rm -f "${D}"/usr/share/doc/speex-1.2beta2/manual.pdf
use doc && dodoc doc/manual.pdf
}
|