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

Contents of /media-libs/libtheora/libtheora-1.0_alpha6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Dec 1 03:03:15 2006 UTC (11 years, 7 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old versions.
(Portage version: 2.1.2_rc2-r3)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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_alpha6.ebuild,v 1.2 2006/06/08 17:54:34 flameeyes Exp $
4
5 inherit flag-o-matic libtool autotools
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="xiph"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
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.am
27
28 epatch "${FILESDIR}/${P/_/}-buildfixes.patch"
29 AT_M4DIR="m4" eautoreconf
30
31 elibtoolize
32
33 if use examples; then
34 # This creates a clean copy of examples sources
35 cp -R "${S}/examples" "${WORKDIR}"
36 rm -f "${WORKDIR}/examples/Makefile"*
37 fi
38 }
39
40 src_compile() {
41 # bug #75403, -O3 needs to be filtered to -O2
42 replace-flags -O3 -O2
43
44 use doc || export ac_cv_prog_HAVE_DOXYGEN="false"
45
46 econf \
47 $(use_enable encode) \
48 --enable-shared \
49 --disable-dependency-tracking \
50 || die "configure failed"
51 emake || die "make failed"
52 }
53
54 src_install() {
55 emake \
56 DESTDIR="${D}" \
57 docdir="usr/share/doc/${PF}" \
58 install || die "make install failed"
59
60 if use examples; then
61 insinto "/usr/share/doc/${PF}/examples"
62 doins "${WORKDIR}/examples/"*
63 fi
64
65 dodoc README
66 }

  ViewVC Help
Powered by ViewVC 1.1.20