| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 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.9 2012/03/25 15:34:52 tomka Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit multilib toolchain-funcs eutils
|
| 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 |
KEYWORDS="alpha amd64 ~arm ~ia64 ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 15 |
else
|
| 16 |
SRC_URI="http://webm.googlecode.com/files/${PN}-v${PV}.tar.bz2"
|
| 17 |
KEYWORDS="alpha amd64 ~arm ~ia64 ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 18 |
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 |
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
|
| 48 |
|
| 49 |
# http://bugs.gentoo.org/show_bug.cgi?id=384585
|
| 50 |
addpredict /usr/share/snmp/mibs/.index
|
| 51 |
|
| 52 |
# http://bugs.gentoo.org/379659 http://gerrit.chromium.org/gerrit/#change,18142
|
| 53 |
export LC_ALL=C
|
| 54 |
|
| 55 |
tc-export CC
|
| 56 |
./configure \
|
| 57 |
--prefix="${EPREFIX}"/usr \
|
| 58 |
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
| 59 |
--enable-pic \
|
| 60 |
--enable-vp8 \
|
| 61 |
--enable-shared \
|
| 62 |
$(use_enable altivec) \
|
| 63 |
$(use_enable debug debug-libs) \
|
| 64 |
$(use_enable debug) \
|
| 65 |
$(use_enable doc install-docs) \
|
| 66 |
$(use_enable mmx) \
|
| 67 |
$(use_enable postproc) \
|
| 68 |
$(use_enable sse) \
|
| 69 |
$(use_enable sse2) \
|
| 70 |
$(use_enable sse3) \
|
| 71 |
$(use_enable sse4_1) \
|
| 72 |
$(use_enable ssse3) \
|
| 73 |
$(use_enable static-libs static ) \
|
| 74 |
$(use_enable threads multithread) \
|
| 75 |
|| die
|
| 76 |
}
|
| 77 |
|
| 78 |
src_install() {
|
| 79 |
emake DESTDIR="${D}" install
|
| 80 |
dodoc AUTHORS CHANGELOG README
|
| 81 |
}
|