diff --git a/cross/openh264/Makefile b/cross/openh264/Makefile new file mode 100644 index 000000000000..382cda3f2bd5 --- /dev/null +++ b/cross/openh264/Makefile @@ -0,0 +1,32 @@ +PKG_NAME = openh264 +PKG_VERS = 2.3.1 +PKG_EXT = tar.gz +PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_NAME = v$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = https://github.com/cisco/openh264/archive/refs/tags +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +DEPENDS = + +HOMEPAGE = http://www.openh264.org/ +COMMENT = OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC. +LICENSE = BSD + +UNSUPPORTED_ARCHS = $(PPC_ARCHS) + +CONFIGURE_ARGS += -Dtests=disabled + +POST_INSTALL_TARGET = openh264-post_install + +BUILD_DEPENDS = native/nasm +NASM_PATH = $(realpath $(WORK_DIR)/../../../native/nasm/work-native/install/usr/local/bin) +ENV += PATH=$(NASM_PATH):$$PATH +ENV += AS=$(NASM_PATH)/nasm + +include ../../mk/spksrc.cross-meson.mk + +.PHONY: openh264-post_install +openh264-post_install: + install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin + install -m 755 $(WORK_DIR)/$(PKG_DIR)/builddir/codec/console/dec/h264dec $(STAGING_INSTALL_PREFIX)/bin + install -m 755 $(WORK_DIR)/$(PKG_DIR)/builddir/codec/console/enc/h264enc $(STAGING_INSTALL_PREFIX)/bin diff --git a/cross/openh264/PLIST b/cross/openh264/PLIST new file mode 100644 index 000000000000..7bf8c25f634d --- /dev/null +++ b/cross/openh264/PLIST @@ -0,0 +1,5 @@ +bin:bin/h264dec +bin:bin/h264enc +lnk:lib/libopenh264.so +lnk:lib/libopenh264.so.7 +lib:lib/libopenh264.so.2.3.1 diff --git a/cross/openh264/digests b/cross/openh264/digests new file mode 100644 index 000000000000..9f272ca6f071 --- /dev/null +++ b/cross/openh264/digests @@ -0,0 +1,3 @@ +openh264-2.3.1.tar.gz SHA1 e45884817e5bcca3fc0b0f90e8b87e8c00cf810b +openh264-2.3.1.tar.gz SHA256 453afa66dacb560bc5fd0468aabee90c483741571bca820a39a1c07f0362dc32 +openh264-2.3.1.tar.gz MD5 fb26184faec8e0d99ffc87e2abd188aa