/[gentoo-x86]/media-libs/libtheora/libtheora-1.1.0.ebuild
Gentoo

Contents of /media-libs/libtheora/libtheora-1.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 11 10:01:36 2010 UTC (8 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc66/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.1.0.ebuild,v 1.1 2009/09/27 08:16:18 aballier Exp $
4
5 EAPI=2
6 inherit autotools eutils flag-o-matic
7
8 DESCRIPTION="The Theora Video Compression Codec"
9 HOMEPAGE="http://www.theora.org"
10 SRC_URI="http://downloads.xiph.org/releases/theora/${P/_}.tar.bz2"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
15 IUSE="doc +encode examples"
16
17 RDEPEND="media-libs/libogg
18 encode? ( media-libs/libvorbis )
19 examples? ( media-libs/libpng
20 media-libs/libvorbis
21 >=media-libs/libsdl-0.11.0 )"
22 DEPEND="${RDEPEND}
23 doc? ( app-doc/doxygen )
24 dev-util/pkgconfig"
25
26 VARTEXFONTS=${T}/fonts
27 S=${WORKDIR}/${P/_}
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-1.0_beta2-flags.patch
31 cp -f "${FILESDIR}"/${PN}-1.1_beta3-encoder_disabled.c "${S}"/lib/encoder_disabled.c
32 AT_M4DIR="m4" eautoreconf
33 }
34
35 src_configure() {
36 use x86 && filter-flags -fforce-addr -frename-registers #200549
37 use doc || export ac_cv_prog_HAVE_DOXYGEN="false"
38
39 local myconf
40 use examples && myconf="--enable-encode"
41
42 # --disable-spec because LaTeX documentation has been prebuilt
43 econf \
44 --disable-dependency-tracking \
45 --disable-spec \
46 $(use_enable encode) \
47 $(use_enable examples) \
48 ${myconf}
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} \
53 install || die "emake install failed"
54
55 dodoc AUTHORS CHANGES README
56 prepalldocs
57
58 if use examples; then
59 if use doc; then
60 insinto /usr/share/doc/${PF}/examples
61 doins examples/*.[ch]
62 fi
63
64 dobin examples/.libs/png2theora || die "dobin failed"
65 for bin in dump_{psnr,video} {encoder,player}_example; do
66 newbin examples/.libs/${bin} theora_${bin} || die "newbin failed"
67 done
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20