blob: 006e73af46a83ebf7503c7d8cc5f4a2774f3fda0 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "VPX multi-format codec"
2DESCRIPTION = "The BSD-licensed libvpx reference implementation provides en- and decoders for VP8 and VP9 bitstreams."
3HOMEPAGE = "http://www.webmproject.org/code/"
4BUGTRACKER = "http://code.google.com/p/webm/issues/list"
5SECTION = "libs/multimedia"
Brad Bishop2d39a062019-10-28 08:33:36 -04006LICENSE = "BSD-3-Clause"
Brad Bishop19323692019-04-05 15:28:33 -04007
8LIC_FILES_CHKSUM = "file://LICENSE;md5=d5b04755015be901744a78cc30d390d4"
9
Brad Bishopb809eb92019-09-18 06:27:43 -040010SRCREV = "8ae686757b708cd8df1d10c71586aff5355cfe1e"
Brad Bishop19323692019-04-05 15:28:33 -040011SRC_URI += "git://chromium.googlesource.com/webm/libvpx;protocol=https \
12 file://libvpx-configure-support-blank-prefix.patch \
13 "
14
15S = "${WORKDIR}/git"
16
17# ffmpeg links with this and fails
18# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
19ARM_INSTRUCTION_SET = "arm"
20
21CFLAGS += "-fPIC"
22
23export CC
24export LD = "${CC}"
25
26VPXTARGET_armv5te = "armv5te-linux-gcc"
27VPXTARGET_armv6 = "armv6-linux-gcc"
28VPXTARGET_armv7a = "armv7-linux-gcc"
29VPXTARGET ?= "generic-gnu"
30
31CONFIGUREOPTS = " \
32 --target=${VPXTARGET} \
33 --enable-vp9 \
34 --enable-libs \
35 --disable-install-docs \
36 --disable-static \
37 --enable-shared \
38 --prefix=${prefix} \
39 --libdir=${libdir} \
40 --size-limit=16384x16384 \
41"
42
43do_configure() {
44 ${S}/configure ${CONFIGUREOPTS}
45}
46
47do_install() {
48 oe_runmake install DESTDIR=${D}
49 chown -R root:root ${D}
50}