xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-multimedia/webm/libvpx_1.11.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "VPX multi-format codec"
2*4882a593SmuzhiyunDESCRIPTION = "The BSD-licensed libvpx reference implementation provides en- and decoders for VP8 and VP9 bitstreams."
3*4882a593SmuzhiyunHOMEPAGE = "http://www.webmproject.org/code/"
4*4882a593SmuzhiyunBUGTRACKER = "http://code.google.com/p/webm/issues/list"
5*4882a593SmuzhiyunSECTION = "libs/multimedia"
6*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=d5b04755015be901744a78cc30d390d4"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSRCREV = "626ff35955c2c35b806b3e0ecf551a1a8611cdbf"
11*4882a593SmuzhiyunSRC_URI += "git://chromium.googlesource.com/webm/libvpx;protocol=https;branch=main \
12*4882a593Smuzhiyun           file://libvpx-configure-support-blank-prefix.patch \
13*4882a593Smuzhiyun           "
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunS = "${WORKDIR}/git"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun# ffmpeg links with this and fails
18*4882a593Smuzhiyun# 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'
19*4882a593SmuzhiyunARM_INSTRUCTION_SET = "arm"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunCFLAGS += "-fPIC"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunexport CC
24*4882a593Smuzhiyunexport LD = "${CC}"
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunVPXTARGET:armv5te = "armv5te-linux-gcc"
27*4882a593SmuzhiyunVPXTARGET:armv6 = "armv6-linux-gcc"
28*4882a593SmuzhiyunVPXTARGET:armv7a = "armv7-linux-gcc"
29*4882a593SmuzhiyunVPXTARGET ?= "generic-gnu"
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunCONFIGUREOPTS = " \
32*4882a593Smuzhiyun    --target=${VPXTARGET} \
33*4882a593Smuzhiyun    --enable-vp9 \
34*4882a593Smuzhiyun    --enable-libs \
35*4882a593Smuzhiyun    --disable-install-docs \
36*4882a593Smuzhiyun    --disable-static \
37*4882a593Smuzhiyun    --enable-shared \
38*4882a593Smuzhiyun    --prefix=${prefix} \
39*4882a593Smuzhiyun    --libdir=${libdir} \
40*4882a593Smuzhiyun    --size-limit=16384x16384 \
41*4882a593Smuzhiyun"
42*4882a593Smuzhiyun
43*4882a593Smuzhiyundo_configure() {
44*4882a593Smuzhiyun    ${S}/configure ${CONFIGUREOPTS}
45*4882a593Smuzhiyun}
46*4882a593Smuzhiyun
47*4882a593Smuzhiyundo_install() {
48*4882a593Smuzhiyun    oe_runmake install DESTDIR=${D}
49*4882a593Smuzhiyun    chown -R root:root ${D}
50*4882a593Smuzhiyun}
51