blob: 066d7cc8153a72f8b73f96968db938c614e9acca [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 Geissler615f2f12022-07-15 14:00:58 -050010SRCREV = "03265cd42b3783532de72f2ded5436652e6f5ce3"
Patrick Williams03907ee2022-05-01 06:28:52 -050011SRC_URI += "git://chromium.googlesource.com/webm/libvpx;protocol=https;branch=main \
12 file://libvpx-configure-support-blank-prefix.patch \
Brad Bishop19323692019-04-05 15:28:33 -040013 "
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
Patrick Williams213cb262021-08-07 19:21:33 -050026VPXTARGET:armv5te = "armv5te-linux-gcc"
27VPXTARGET:armv6 = "armv6-linux-gcc"
28VPXTARGET:armv7a = "armv7-linux-gcc"
Brad Bishop19323692019-04-05 15:28:33 -040029VPXTARGET ?= "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}