blob: b4d49842ea95b063a2c822fec4fe6b7c98ae64ed [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
Patrick Williams73bd93f2024-02-20 08:07:48 -060010SRCREV = "602e2e8979d111b02c959470da5322797dd96a19"
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"
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060022BUILD_LDFLAGS += "-pthread"
Brad Bishop19323692019-04-05 15:28:33 -040023
24export CC
25export LD = "${CC}"
26
Andrew Geissler5082cc72023-09-11 08:41:39 -040027VPXTARGET:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon","armv7-linux-gcc","generic-gnu",d)}"
Brad Bishop19323692019-04-05 15:28:33 -040028VPXTARGET ?= "generic-gnu"
29
30CONFIGUREOPTS = " \
31 --target=${VPXTARGET} \
32 --enable-vp9 \
33 --enable-libs \
34 --disable-install-docs \
35 --disable-static \
36 --enable-shared \
37 --prefix=${prefix} \
38 --libdir=${libdir} \
39 --size-limit=16384x16384 \
40"
41
42do_configure() {
43 ${S}/configure ${CONFIGUREOPTS}
44}
45
46do_install() {
47 oe_runmake install DESTDIR=${D}
48 chown -R root:root ${D}
49}
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060050
51BBCLASSEXTEND += "native"