| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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/libvpx/libvpx-1.0.0.ebuild,v 1.1 2012/02/29 11:55:03 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/media-libs/libvpx/libvpx-1.0.0.ebuild,v 1.6 2012/03/10 16:57:32 ranger Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | inherit multilib toolchain-funcs |
6 | inherit multilib toolchain-funcs eutils |
| 7 | |
7 | |
| 8 | if [[ ${PV} == *9999* ]]; then |
8 | if [[ ${PV} == *9999* ]]; then |
| 9 | inherit git-2 |
9 | inherit git-2 |
| 10 | EGIT_REPO_URI="http://git.chromium.org/webm/${PN}.git" |
10 | EGIT_REPO_URI="http://git.chromium.org/webm/${PN}.git" |
| 11 | KEYWORDS="" |
11 | KEYWORDS="" |
| 12 | elif [[ ${PV} == *pre* ]]; then |
12 | elif [[ ${PV} == *pre* ]]; then |
| 13 | SRC_URI="mirror://gentoo/${P}.tar.bz2" |
13 | SRC_URI="mirror://gentoo/${P}.tar.bz2" |
| 14 | KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
14 | KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
| 15 | else |
15 | else |
| 16 | SRC_URI="http://webm.googlecode.com/files/${PN}-v${PV}.tar.bz2" |
16 | SRC_URI="http://webm.googlecode.com/files/${PN}-v${PV}.tar.bz2" |
| 17 | KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
17 | KEYWORDS="~alpha amd64 ~arm ~ia64 ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
| 18 | S="${WORKDIR}/${PN}-v${PV}" |
18 | S="${WORKDIR}/${PN}-v${PV}" |
| 19 | fi |
19 | fi |
| 20 | |
20 | |
| 21 | DESCRIPTION="WebM VP8 Codec SDK" |
21 | DESCRIPTION="WebM VP8 Codec SDK" |
| 22 | HOMEPAGE="http://www.webmproject.org" |
22 | HOMEPAGE="http://www.webmproject.org" |
| … | |
… | |
| 36 | " |
36 | " |
| 37 | |
37 | |
| 38 | REQUIRED_USE=" |
38 | REQUIRED_USE=" |
| 39 | sse2? ( mmx ) |
39 | sse2? ( mmx ) |
| 40 | " |
40 | " |
|
|
41 | src_prepare() { |
|
|
42 | epatch "${FILESDIR}"/${P}-support-arm.patch |
|
|
43 | } |
|
|
44 | src_configure() { |
|
|
45 | #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 |
| 41 | |
48 | |
| 42 | src_configure() { |
|
|
| 43 | # http://bugs.gentoo.org/show_bug.cgi?id=384585 |
49 | # http://bugs.gentoo.org/show_bug.cgi?id=384585 |
| 44 | addpredict /usr/share/snmp/mibs/.index |
50 | addpredict /usr/share/snmp/mibs/.index |
| 45 | |
51 | |
| 46 | tc-export CC |
52 | tc-export CC |
| 47 | ./configure \ |
53 | ./configure \ |