Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 1 | SUMMARY = "Open Source H.264 Codec" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 2 | DESCRIPTION = "OpenH264 is a codec library which supports H.264 encoding and \ |
| 3 | decoding. It is suitable for use in real time applications such as WebRTC." |
| 4 | HOMEPAGE = "http://www.openh264.org/" |
| 5 | SECTION = "libs/multimedia" |
| 6 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 7 | DEPENDS:append:x86 = " nasm-native" |
| 8 | DEPENDS:append:x86-64 = " nasm-native" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 9 | |
| 10 | LICENSE = "BSD-2-Clause" |
| 11 | LICENSE_FLAGS = "commercial" |
| 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf" |
| 13 | |
| 14 | S = "${WORKDIR}/git" |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 15 | SRCREV = "0a48f4d2e9be2abb4fb01b4c3be83cf44ce91a6e" |
| 16 | BRANCH = "openh264v${PV}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH} \ |
| 18 | file://0001-Makefile-Use-cp-options-to-preserve-file-mode.patch \ |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 19 | file://0002-Makefile-add-possibility-to-disable-NEON-extension.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | " |
| 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | COMPATIBLE_MACHINE:armv7a = "(.*)" |
| 23 | COMPATIBLE_MACHINE:aarch64 = "(.*)" |
| 24 | COMPATIBLE_MACHINE:x86 = "(.*)" |
| 25 | COMPATIBLE_MACHINE:x86-64 = "(.*)" |
| 26 | COMPATIBLE_MACHINE:mips = "(.*)" |
| 27 | COMPATIBLE_MACHINE:mips64 = "(.*)" |
| 28 | COMPATIBLE_MACHINE:powerpc64le = "null" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 29 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 30 | EXTRA_OEMAKE:armv7a = "ARCH=arm" |
| 31 | EXTRA_OEMAKE:armv7ve = "ARCH=arm" |
| 32 | EXTRA_OEMAKE:aarch64 = "ARCH=arm64" |
| 33 | EXTRA_OEMAKE:x86 = "ARCH=i386" |
| 34 | EXTRA_OEMAKE:x86-64 = "ARCH=x86_64" |
| 35 | EXTRA_OEMAKE:mips = "ARCH=mips" |
| 36 | EXTRA_OEMAKE:mips64 = "ARCH=mips64" |
| 37 | EXTRA_OEMAKE:riscv64 = "ARCH=riscv64" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 38 | |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 39 | EXTRA_OEMAKE:append:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}" |
| 40 | EXTRA_OEMAKE:append:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon",""," USE_NEON=No",d)}" |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | EXTRA_OEMAKE:append = " ENABLEPIC=Yes" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | do_configure() { |
| 44 | : |
| 45 | } |
| 46 | |
| 47 | do_compile() { |
| 48 | oe_runmake |
| 49 | } |
| 50 | |
| 51 | do_install() { |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 52 | oe_runmake install DESTDIR=${D} PREFIX=${prefix} LIBDIR_NAME=${baselib} SHAREDLIB_DIR=${libdir} |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | CLEANBROKEN = "1" |