| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/libtheora-1.1.1.ebuild,v 1.7 2010/02/25 18:38:25 armin76 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/media-libs/libtheora/libtheora-1.1.1.ebuild,v 1.8 2010/09/25 14:52:08 ssuominen Exp $ |
| 4 | |
4 | |
| 5 | EAPI=2 |
5 | EAPI=2 |
| 6 | inherit autotools eutils flag-o-matic |
6 | inherit autotools eutils flag-o-matic |
| 7 | |
7 | |
| 8 | DESCRIPTION="The Theora Video Compression Codec" |
8 | DESCRIPTION="The Theora Video Compression Codec" |
| … | |
… | |
| 10 | SRC_URI="http://downloads.xiph.org/releases/theora/${P/_}.tar.bz2" |
10 | SRC_URI="http://downloads.xiph.org/releases/theora/${P/_}.tar.bz2" |
| 11 | |
11 | |
| 12 | LICENSE="BSD" |
12 | LICENSE="BSD" |
| 13 | SLOT="0" |
13 | SLOT="0" |
| 14 | KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
14 | KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
| 15 | IUSE="doc +encode examples" |
15 | IUSE="doc +encode examples static-libs" |
| 16 | |
16 | |
| 17 | RDEPEND="media-libs/libogg |
17 | RDEPEND="media-libs/libogg |
| 18 | encode? ( media-libs/libvorbis ) |
18 | encode? ( media-libs/libvorbis ) |
| 19 | examples? ( media-libs/libpng |
19 | examples? ( media-libs/libpng |
| 20 | media-libs/libvorbis |
20 | media-libs/libvorbis |
| … | |
… | |
| 39 | use examples && myconf="--enable-encode" |
39 | use examples && myconf="--enable-encode" |
| 40 | |
40 | |
| 41 | # --disable-spec because LaTeX documentation has been prebuilt |
41 | # --disable-spec because LaTeX documentation has been prebuilt |
| 42 | econf \ |
42 | econf \ |
| 43 | --disable-dependency-tracking \ |
43 | --disable-dependency-tracking \ |
|
|
44 | $(use_enable static-libs static) \ |
| 44 | --disable-spec \ |
45 | --disable-spec \ |
| 45 | $(use_enable encode) \ |
46 | $(use_enable encode) \ |
| 46 | $(use_enable examples) \ |
47 | $(use_enable examples) \ |
| 47 | ${myconf} |
48 | ${myconf} |
| 48 | } |
49 | } |
| … | |
… | |
| 63 | dobin examples/.libs/png2theora || die "dobin failed" |
64 | dobin examples/.libs/png2theora || die "dobin failed" |
| 64 | for bin in dump_{psnr,video} {encoder,player}_example; do |
65 | for bin in dump_{psnr,video} {encoder,player}_example; do |
| 65 | newbin examples/.libs/${bin} theora_${bin} || die "newbin failed" |
66 | newbin examples/.libs/${bin} theora_${bin} || die "newbin failed" |
| 66 | done |
67 | done |
| 67 | fi |
68 | fi |
|
|
69 | |
|
|
70 | find "${D}" -name '*.la' -exec rm -f '{}' + |
| 68 | } |
71 | } |