| 1 |
aballier |
1.20 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
lu_zero |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
vapier |
1.28 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libvpx/libvpx-9999.ebuild,v 1.27 2012/08/15 03:40:29 mr_bones_ Exp $
|
| 4 |
lu_zero |
1.1 |
|
| 5 |
aballier |
1.9 |
EAPI=4
|
| 6 |
aballier |
1.24 |
inherit multilib toolchain-funcs
|
| 7 |
lu_zero |
1.1 |
|
| 8 |
spatz |
1.5 |
if [[ ${PV} == *9999* ]]; then
|
| 9 |
aballier |
1.10 |
inherit git-2
|
| 10 |
radhermit |
1.17 |
EGIT_REPO_URI="http://git.chromium.org/webm/${PN}.git"
|
| 11 |
spatz |
1.5 |
KEYWORDS=""
|
| 12 |
lu_zero |
1.7 |
elif [[ ${PV} == *pre* ]]; then
|
| 13 |
|
|
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
| 14 |
aballier |
1.25 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 15 |
spatz |
1.5 |
else
|
| 16 |
lu_zero |
1.7 |
SRC_URI="http://webm.googlecode.com/files/${PN}-v${PV}.tar.bz2"
|
| 17 |
aballier |
1.25 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 18 |
aballier |
1.20 |
S="${WORKDIR}/${PN}-v${PV}"
|
| 19 |
spatz |
1.5 |
fi
|
| 20 |
lu_zero |
1.1 |
|
| 21 |
|
|
DESCRIPTION="WebM VP8 Codec SDK"
|
| 22 |
|
|
HOMEPAGE="http://www.webmproject.org"
|
| 23 |
|
|
|
| 24 |
|
|
LICENSE="BSD"
|
| 25 |
|
|
SLOT="0"
|
| 26 |
radhermit |
1.16 |
IUSE="altivec debug doc mmx postproc sse sse2 sse3 ssse3 sse4_1 static-libs +threads"
|
| 27 |
lu_zero |
1.1 |
|
| 28 |
|
|
RDEPEND=""
|
| 29 |
spatz |
1.4 |
DEPEND="amd64? ( dev-lang/yasm )
|
| 30 |
|
|
x86? ( dev-lang/yasm )
|
| 31 |
aballier |
1.13 |
x86-fbsd? ( dev-lang/yasm )
|
| 32 |
lu_zero |
1.1 |
doc? (
|
| 33 |
|
|
app-doc/doxygen
|
| 34 |
|
|
dev-lang/php
|
| 35 |
|
|
)
|
| 36 |
|
|
"
|
| 37 |
|
|
|
| 38 |
aballier |
1.9 |
REQUIRED_USE="
|
| 39 |
|
|
sse2? ( mmx )
|
| 40 |
|
|
"
|
| 41 |
|
|
|
| 42 |
lu_zero |
1.1 |
src_configure() {
|
| 43 |
vapier |
1.28 |
# let the build system decide which AS to use (it honours $AS but
|
| 44 |
|
|
# then feeds it with yasm flags without checking...) #345161
|
| 45 |
|
|
local a
|
| 46 |
|
|
tc-export AS
|
| 47 |
|
|
for a in {amd64,x86}{,-{fbsd,linux}} ; do
|
| 48 |
|
|
use ${a} && unset AS
|
| 49 |
|
|
done
|
| 50 |
tommy |
1.22 |
|
| 51 |
aballier |
1.23 |
# build verbose by default
|
| 52 |
|
|
MAKEOPTS="${MAKEOPTS} verbose=yes"
|
| 53 |
|
|
|
| 54 |
ottxor |
1.18 |
# http://bugs.gentoo.org/show_bug.cgi?id=384585
|
| 55 |
|
|
addpredict /usr/share/snmp/mibs/.index
|
| 56 |
|
|
|
| 57 |
aballier |
1.24 |
# Build with correct toolchain.
|
| 58 |
|
|
tc-export CC AR NM
|
| 59 |
|
|
# Link with gcc by default, the build system should override this if needed.
|
| 60 |
|
|
export LD="${CC}"
|
| 61 |
aballier |
1.23 |
|
| 62 |
lu_zero |
1.1 |
./configure \
|
| 63 |
darkside |
1.8 |
--prefix="${EPREFIX}"/usr \
|
| 64 |
|
|
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
| 65 |
lu_zero |
1.1 |
--enable-pic \
|
| 66 |
|
|
--enable-vp8 \
|
| 67 |
|
|
--enable-shared \
|
| 68 |
aballier |
1.23 |
--extra-cflags="${CFLAGS}" \
|
| 69 |
spatz |
1.5 |
$(use_enable altivec) \
|
| 70 |
radhermit |
1.16 |
$(use_enable debug debug-libs) \
|
| 71 |
|
|
$(use_enable debug) \
|
| 72 |
|
|
$(use_enable doc install-docs) \
|
| 73 |
spatz |
1.5 |
$(use_enable mmx) \
|
| 74 |
radhermit |
1.16 |
$(use_enable postproc) \
|
| 75 |
spatz |
1.5 |
$(use_enable sse) \
|
| 76 |
|
|
$(use_enable sse2) \
|
| 77 |
|
|
$(use_enable sse3) \
|
| 78 |
radhermit |
1.16 |
$(use_enable sse4_1) \
|
| 79 |
spatz |
1.5 |
$(use_enable ssse3) \
|
| 80 |
radhermit |
1.16 |
$(use_enable static-libs static ) \
|
| 81 |
lu_zero |
1.1 |
$(use_enable threads multithread) \
|
| 82 |
|
|
|| die
|
| 83 |
|
|
}
|
| 84 |
|
|
|
| 85 |
|
|
src_install() {
|
| 86 |
vapier |
1.26 |
# Override base.eclass's src_install.
|
| 87 |
|
|
default
|
| 88 |
lu_zero |
1.1 |
}
|