blob: 21e499c4afbd7eff05c04f8fec524c730273ffd6 (
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
59
60
61
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/faad2/faad2-2.0-r13.ebuild,v 1.14 2007/05/21 21:03:56 armin76 Exp $
inherit eutils libtool flag-o-matic autotools
PATCHLEVEL="5"
DESCRIPTION="AAC audio decoding library"
HOMEPAGE="http://www.audiocoding.com/"
SRC_URI="mirror://sourceforge/faac/${PN}-${PV/_/-}.tar.gz
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND="media-libs/libmp4v2"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd ${S}
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
eautoreconf
}
src_compile() {
# see #34392
filter-flags -mfpmath=sse
append-flags -fno-strict-aliasing
# mp4v2 needed for rhythmbox
# drm needed for nothing but doesn't hurt
econf \
--with-drm \
--without-xmms \
|| die "econf failed"
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README README.linux TODO
# unneeded include, <systems.h> breaks building of apps, but
# it is necessary because includes <sys/types.h>,
# which is needed by /usr/include/mp4.h... so we just
# include <sys/types.h> instead. See bug #55767
sed -i -e "s:#include <systems.h>:#include <sys/types.h>:" \
${D}/usr/include/mpeg4ip.h
sed -i -e "s:\"mp4ff_int_types.h\":<stdint.h>:" \
${D}/usr/include/mp4ff.h
}
|