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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Apr 17 11:27:38 2008 UTC (10 years, 5 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.5_rc4)

1 # Copyright 1999-2007 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_alpha7-r1.ebuild,v 1.1 2007/06/04 16:05:29 lu_zero Exp $
4
5 inherit flag-o-matic libtool
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"
14 IUSE="encode doc examples"
15
16 RDEPEND=">=media-libs/libogg-1.1.0
17 encode? ( >=media-libs/libvorbis-1.0.1 )"
18 DEPEND="${RDEPEND}
19 doc? ( app-doc/doxygen )"
20
21 S=${WORKDIR}/${P/_}
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 sed -i -e 's:SUBDIRS = .*:SUBDIRS = lib include doc:' Makefile.in
27
28 elibtoolize
29
30 epatch "${FILESDIR}/${P/_}-nocomments.patch"
31
32 if use examples; then
33 # This creates a clean copy of examples sources
34 cp -R "${S}/examples" "${WORKDIR}"
35 rm -f "${WORKDIR}/examples/Makefile"*
36 fi
37 }
38
39 src_compile() {
40 # bug #75403, -O3 needs to be filtered to -O2
41 replace-flags -O3 -O2
42
43 use doc || export ac_cv_prog_HAVE_DOXYGEN="false"
44
45 econf \
46 $(use_enable encode) \
47 --enable-shared \
48 --disable-dependency-tracking \
49 || die "configure failed"
50 emake || die "make failed"
51 }
52
53 src_install() {
54 emake -j1 \
55 DESTDIR="${D}" \
56 docdir="usr/share/doc/${PF}" \
57 install || die "make install failed"
58
59 if use examples; then
60 insinto "/usr/share/doc/${PF}/examples"
61 doins "${WORKDIR}/examples/"*
62 fi
63
64 dodoc README
65 }

  ViewVC Help
Powered by ViewVC 1.1.20