Skip to content

Commit

Permalink
openh264: Import from gstreamer PR SynoCommunity#5298
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Mar 15, 2023
1 parent 528620e commit 88cc67e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
32 changes: 32 additions & 0 deletions cross/openh264/Makefile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions cross/openh264/PLIST
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions cross/openh264/digests
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 88cc67e

Please sign in to comment.