/[gentoo-x86]/media-libs/libvpx/libvpx-1.0.0.ebuild
Gentoo

Contents of /media-libs/libvpx/libvpx-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sat Mar 10 16:57:32 2012 UTC (2 years, 6 months ago) by ranger
Branch: MAIN
Changes since 1.5: +3 -3 lines
Marking libvpx-1.0.0 ppc for bug 405955

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 aballier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ranger 1.6 # $Header: /var/cvsroot/gentoo-x86/media-libs/libvpx/libvpx-1.0.0.ebuild,v 1.5 2012/03/04 17:22:19 lu_zero Exp $
4 aballier 1.1
5     EAPI=4
6 lu_zero 1.5 inherit multilib toolchain-funcs eutils
7 aballier 1.1
8     if [[ ${PV} == *9999* ]]; then
9     inherit git-2
10     EGIT_REPO_URI="http://git.chromium.org/webm/${PN}.git"
11     KEYWORDS=""
12     elif [[ ${PV} == *pre* ]]; then
13     SRC_URI="mirror://gentoo/${P}.tar.bz2"
14 ranger 1.6 KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
15 aballier 1.1 else
16     SRC_URI="http://webm.googlecode.com/files/${PN}-v${PV}.tar.bz2"
17 ranger 1.6 KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
18 aballier 1.1 S="${WORKDIR}/${PN}-v${PV}"
19     fi
20    
21     DESCRIPTION="WebM VP8 Codec SDK"
22     HOMEPAGE="http://www.webmproject.org"
23    
24     LICENSE="BSD"
25     SLOT="0"
26     IUSE="altivec debug doc mmx postproc sse sse2 sse3 ssse3 sse4_1 static-libs +threads"
27    
28     RDEPEND=""
29     DEPEND="amd64? ( dev-lang/yasm )
30     x86? ( dev-lang/yasm )
31     x86-fbsd? ( dev-lang/yasm )
32     doc? (
33     app-doc/doxygen
34     dev-lang/php
35     )
36     "
37    
38     REQUIRED_USE="
39     sse2? ( mmx )
40     "
41 lu_zero 1.5 src_prepare() {
42     epatch "${FILESDIR}"/${P}-support-arm.patch
43     }
44 aballier 1.1 src_configure() {
45 tommy 1.4 #let the build system decide which AS to use (it honours $AS but
46     #then feeds it with yasm flags without checking...) bug 345161
47     unset AS
48    
49 aballier 1.1 # http://bugs.gentoo.org/show_bug.cgi?id=384585
50     addpredict /usr/share/snmp/mibs/.index
51    
52     tc-export CC
53     ./configure \
54     --prefix="${EPREFIX}"/usr \
55     --libdir="${EPREFIX}"/usr/$(get_libdir) \
56     --enable-pic \
57     --enable-vp8 \
58     --enable-shared \
59     $(use_enable altivec) \
60     $(use_enable debug debug-libs) \
61     $(use_enable debug) \
62     $(use_enable doc install-docs) \
63     $(use_enable mmx) \
64     $(use_enable postproc) \
65     $(use_enable sse) \
66     $(use_enable sse2) \
67     $(use_enable sse3) \
68     $(use_enable sse4_1) \
69     $(use_enable ssse3) \
70     $(use_enable static-libs static ) \
71     $(use_enable threads multithread) \
72     || die
73     }
74    
75     src_install() {
76     emake DESTDIR="${D}" install
77     dodoc AUTHORS CHANGELOG README
78     }

  ViewVC Help
Powered by ViewVC 1.1.20