blob: 6dfd7593559fee28eb4998571e190efcd5bb6322 [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 \
Andrew Geissler5082cc72023-09-11 08:41:39 -040019 file://0002-Makefile-add-possibility-to-disable-NEON-extension.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050020 "
21
Patrick Williams213cb262021-08-07 19:21:33 -050022COMPATIBLE_MACHINE:armv7a = "(.*)"
23COMPATIBLE_MACHINE:aarch64 = "(.*)"
24COMPATIBLE_MACHINE:x86 = "(.*)"
25COMPATIBLE_MACHINE:x86-64 = "(.*)"
26COMPATIBLE_MACHINE:mips = "(.*)"
27COMPATIBLE_MACHINE:mips64 = "(.*)"
28COMPATIBLE_MACHINE:powerpc64le = "null"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
Patrick Williams213cb262021-08-07 19:21:33 -050030EXTRA_OEMAKE:armv7a = "ARCH=arm"
31EXTRA_OEMAKE:armv7ve = "ARCH=arm"
32EXTRA_OEMAKE:aarch64 = "ARCH=arm64"
33EXTRA_OEMAKE:x86 = "ARCH=i386"
34EXTRA_OEMAKE:x86-64 = "ARCH=x86_64"
35EXTRA_OEMAKE:mips = "ARCH=mips"
36EXTRA_OEMAKE:mips64 = "ARCH=mips64"
37EXTRA_OEMAKE:riscv64 = "ARCH=riscv64"
Andrew Geissler82c905d2020-04-13 13:39:40 -050038
Andrew Geissler5082cc72023-09-11 08:41:39 -040039EXTRA_OEMAKE:append:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}"
40EXTRA_OEMAKE:append:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}"
41
Patrick Williams213cb262021-08-07 19:21:33 -050042EXTRA_OEMAKE:append = " ENABLEPIC=Yes"
Andrew Geissler82c905d2020-04-13 13:39:40 -050043do_configure() {
44 :
45}
46
47do_compile() {
48 oe_runmake
49}
50
51do_install() {
Andrew Geissler5082cc72023-09-11 08:41:39 -040052 oe_runmake install DESTDIR=${D} PREFIX=${prefix} LIBDIR_NAME=${baselib} SHAREDLIB_DIR=${libdir}
Andrew Geissler82c905d2020-04-13 13:39:40 -050053}
54
55CLEANBROKEN = "1"