blob: 125bff789f948fea64734c93633a66f641a633ef (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/speex-1.2_rc1-r1.ebuild,v 1.3 2012/05/15 13:10:33 aballier Exp $
EAPI=2
inherit autotools eutils flag-o-matic
MY_P=${P/_} ; MY_P=${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 ~amd64-fbsd ~x86-fbsd"
IUSE="ogg sse static-libs"
RDEPEND="ogg? ( media-libs/libogg )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${PF}-configure.patch
sed -i \
-e 's:noinst_PROGRAMS:check_PROGRAMS:' \
libspeex/Makefile.am || die
eautoreconf
}
src_configure() {
append-lfs-flags
econf \
$(use_enable static-libs static) \
--disable-dependency-tracking \
$(use_enable sse) \
$(use_enable ogg)
}
src_install() {
emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install || die
dodoc AUTHORS ChangeLog NEWS README* TODO
find "${D}" -name '*.la' -exec rm -f '{}' +
}
|