/[gentoo-x86]/media-libs/a52dec/a52dec-0.7.4-r6.ebuild
Gentoo

Contents of /media-libs/a52dec/a52dec-0.7.4-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Thu May 17 13:55:59 2012 UTC (2 years, 7 months ago) by aballier
Branch: MAIN
Changes since 1.17: +3 -3 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/a52dec/a52dec-0.7.4-r6.ebuild,v 1.17 2011/08/17 16:48:48 chithanh Exp $
4
5 EAPI=3
6 inherit autotools eutils flag-o-matic
7
8 DESCRIPTION="library for decoding ATSC A/52 streams used in DVD"
9 HOMEPAGE="http://liba52.sourceforge.net/"
10 SRC_URI="http://liba52.sourceforge.net/files/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
15 IUSE="djbfft oss static-libs"
16
17 RDEPEND="djbfft? ( sci-libs/djbfft )"
18 DEPEND="${RDEPEND}"
19
20 src_prepare() {
21 epatch \
22 "${FILESDIR}"/${P}-build.patch \
23 "${FILESDIR}"/${P}-freebsd.patch \
24 "${FILESDIR}"/${P}-tests-optional.patch \
25 "${FILESDIR}"/${P}-test-hidden-symbols.patch
26
27 eautoreconf
28 epunt_cxx
29 }
30
31 src_configure() {
32 filter-flags -fprefetch-loop-arrays
33
34 local myconf
35 use oss || myconf="${myconf} --disable-oss"
36
37 econf \
38 --enable-shared \
39 $(use_enable static-libs static) \
40 $(use_enable djbfft) \
41 ${myconf}
42 }
43
44 src_compile() {
45 emake CFLAGS="${CFLAGS}" || die
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install || die
50
51 insinto /usr/include/a52dec
52 doins liba52/a52_internal.h || die
53
54 dodoc AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt
55
56 find "${ED}" -name '*.la' -exec rm -f {} +
57 }

  ViewVC Help
Powered by ViewVC 1.1.20