/[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.2 - (hide annotations) (download)
Wed Feb 29 13:49:42 2012 UTC (2 years, 8 months ago) by ago
Branch: MAIN
Changes since 1.1: +3 -3 lines
Stable for AMD64, wrt security bug #405955

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 aballier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libvpx/libvpx-1.0.0.ebuild,v 1.1 2012/02/29 11:55:03 aballier Exp $
4 aballier 1.1
5     EAPI=4
6     inherit multilib toolchain-funcs
7    
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 ago 1.2 KEYWORDS="~alpha amd64 ~arm ~ia64 ~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 ago 1.2 KEYWORDS="~alpha amd64 ~arm ~ia64 ~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    
42     src_configure() {
43     # http://bugs.gentoo.org/show_bug.cgi?id=384585
44     addpredict /usr/share/snmp/mibs/.index
45    
46     tc-export CC
47     ./configure \
48     --prefix="${EPREFIX}"/usr \
49     --libdir="${EPREFIX}"/usr/$(get_libdir) \
50     --enable-pic \
51     --enable-vp8 \
52     --enable-shared \
53     $(use_enable altivec) \
54     $(use_enable debug debug-libs) \
55     $(use_enable debug) \
56     $(use_enable doc install-docs) \
57     $(use_enable mmx) \
58     $(use_enable postproc) \
59     $(use_enable sse) \
60     $(use_enable sse2) \
61     $(use_enable sse3) \
62     $(use_enable sse4_1) \
63     $(use_enable ssse3) \
64     $(use_enable static-libs static ) \
65     $(use_enable threads multithread) \
66     || die
67     }
68    
69     src_install() {
70     emake DESTDIR="${D}" install
71     dodoc AUTHORS CHANGELOG README
72     }

  ViewVC Help
Powered by ViewVC 1.1.20