/[gentoo-x86]/media-libs/libtheora/libtheora-1.0_beta2-r1.ebuild
Gentoo

Contents of /media-libs/libtheora/libtheora-1.0_beta2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Dec 9 15:17:51 2008 UTC (9 years, 9 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6/cvs/Linux 2.6.27.7 i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/libtheora-1.0_beta2-r1.ebuild,v 1.10 2008/12/07 11:53:05 vapier Exp $
4
5 inherit autotools eutils toolchain-funcs flag-o-matic
6
7 DESCRIPTION="The Theora Video Compression Codec"
8 HOMEPAGE="http://www.theora.org"
9 SRC_URI="http://downloads.xiph.org/releases/theora/${P/_}.tar.bz2"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
14 IUSE="doc encode examples"
15
16 RDEPEND=">=media-libs/libogg-1.1
17 encode? ( >=media-libs/libvorbis-1.0.1 )"
18 DEPEND="${RDEPEND}
19 doc? ( app-doc/doxygen )
20 dev-util/pkgconfig"
21
22 S=${WORKDIR}/${P/_}
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 epatch "${FILESDIR}"/${P}-flags.patch
28 epatch "${FILESDIR}"/${P}-pic-fix.patch
29 AT_M4DIR="m4" eautoreconf
30 }
31
32 src_compile() {
33 use x86 && filter-flags -fforce-addr -frename-registers #200549
34
35 use doc || export ac_cv_prog_HAVE_DOXYGEN="false"
36
37 econf --disable-dependency-tracking --disable-examples \
38 --disable-sdltest $(use_enable encode)
39
40 emake || die "emake failed."
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" docdir="usr/share/doc/${PF}" \
45 install || die "emake install failed."
46
47 dodoc AUTHORS CHANGES README
48
49 prepalldocs
50
51 if use examples; then
52 rm examples/Makefile*
53 insinto /usr/share/doc/${PF}/examples
54 doins examples/*
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20