blob: 4a98ec17ddce8f1a9fb5155d8ff1b654efc1d62d [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
Andrew Geissler89770b02020-06-13 10:40:47 -050010SRCREV = "7ec7a33a081aeeb53fed1a8d87e4cbd189152527"
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}