blob: 3fa87d05f5349ac2766b03fc7d33fe156fd2540c [file] [log] [blame]
Patrick Williams2a254922023-08-11 09:48:11 -05001SUMMARY = "Open Source H.264 Codec"
Andrew Geissler82c905d2020-04-13 13:39:40 -05002DESCRIPTION = "OpenH264 is a codec library which supports H.264 encoding and \
3decoding. It is suitable for use in real time applications such as WebRTC."
4HOMEPAGE = "http://www.openh264.org/"
5SECTION = "libs/multimedia"
6
Patrick Williams213cb262021-08-07 19:21:33 -05007DEPENDS:append:x86 = " nasm-native"
8DEPENDS:append:x86-64 = " nasm-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -05009
10LICENSE = "BSD-2-Clause"
11LICENSE_FLAGS = "commercial"
12LIC_FILES_CHKSUM = "file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf"
13
14S = "${WORKDIR}/git"
Patrick Williams2a254922023-08-11 09:48:11 -050015SRCREV = "0a48f4d2e9be2abb4fb01b4c3be83cf44ce91a6e"
16BRANCH = "openh264v${PV}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050017SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH} \
18 file://0001-Makefile-Use-cp-options-to-preserve-file-mode.patch \
19 "
20
Patrick Williams213cb262021-08-07 19:21:33 -050021COMPATIBLE_MACHINE:armv7a = "(.*)"
22COMPATIBLE_MACHINE:aarch64 = "(.*)"
23COMPATIBLE_MACHINE:x86 = "(.*)"
24COMPATIBLE_MACHINE:x86-64 = "(.*)"
25COMPATIBLE_MACHINE:mips = "(.*)"
26COMPATIBLE_MACHINE:mips64 = "(.*)"
27COMPATIBLE_MACHINE:powerpc64le = "null"
Andrew Geissler82c905d2020-04-13 13:39:40 -050028
Patrick Williams213cb262021-08-07 19:21:33 -050029EXTRA_OEMAKE:armv7a = "ARCH=arm"
30EXTRA_OEMAKE:armv7ve = "ARCH=arm"
31EXTRA_OEMAKE:aarch64 = "ARCH=arm64"
32EXTRA_OEMAKE:x86 = "ARCH=i386"
33EXTRA_OEMAKE:x86-64 = "ARCH=x86_64"
34EXTRA_OEMAKE:mips = "ARCH=mips"
35EXTRA_OEMAKE:mips64 = "ARCH=mips64"
36EXTRA_OEMAKE:riscv64 = "ARCH=riscv64"
Andrew Geissler82c905d2020-04-13 13:39:40 -050037
Patrick Williams213cb262021-08-07 19:21:33 -050038EXTRA_OEMAKE:append = " ENABLEPIC=Yes"
Andrew Geissler82c905d2020-04-13 13:39:40 -050039do_configure() {
40 :
41}
42
43do_compile() {
44 oe_runmake
45}
46
47do_install() {
48 oe_runmake install DESTDIR=${D} PREFIX=${prefix}
49}
50
51CLEANBROKEN = "1"