blob: f4b425e1f62e7fd5cd048ae572d7b8f4d240358a (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/a52dec-0.7.4-r1.ebuild,v 1.6 2004/09/16 03:53:24 kito Exp $
inherit flag-o-matic
DESCRIPTION="library for decoding ATSC A/52 streams used in DVD"
HOMEPAGE="http://liba52.sourceforge.net/"
SRC_URI="http://liba52.sourceforge.net/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~hppa ~amd64 ~alpha ~ia64 ppc64 ~ppc-macos"
IUSE="oss static djbfft"
DEPEND=">=sys-devel/autoconf-2.52d-r1
x86? ( djbfft? ( dev-libs/djbfft ) )
amd64? ( djbfft? ( dev-libs/djbfft ) )"
RDEPEND="virtual/libc"
src_compile() {
append-flags -fPIC
filter-flags -fprefetch-loop-arrays
local myconf
use oss \
|| myconf="${myconf} --disable-oss"
use static \
&& myconf="${myconf} --disable-shared --enable-static" \
|| myconf="${myconf} --enable-shared --disable-static"
(use x86 || use amd64) && myconf="${myconf} $(use_enable djbfft)"
econf ${myconf} || die
emake || die "emake failed"
}
src_install() {
einstall docdir=${D}/usr/share/doc/${PF}/html || die
dodoc AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt
}
|