Skip to content

Commit

Permalink
spksrc: Allow managing spk files for realtek hardware acceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Sep 3, 2022
1 parent 5866ed6 commit b35ff82
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
33 changes: 33 additions & 0 deletions cross/gst-omx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PKG_NAME = gst-omx
PKG_VERS = 1.20.3
PKG_EXT = tar.xz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://gstreamer.freedesktop.org/src/gst-omx
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

#DEPENDS = cross/glib
DEPENDS += cross/realtek-omx
DEPENDS += cross/gstreamer
DEPENDS += cross/gst-plugins-base

HOMEPAGE = https://github.com/GStreamer/gst-omx
COMMENT = This plugin wraps available OpenMAX IL components and makes them available as standard GStreamer elements.
LICENSE = LGPLv2.1

CONFIGURE_ARGS += -Ddoc=disabled
#CONFIGURE_ARGS += -Dexamples=disabled
CONFIGURE_ARGS += -Dtarget=generic

# Require access to glib-mkenums Python script
#ENV += PATH=$(STAGING_INSTALL_PREFIX)/bin:$$PATH

#include ../../mk/spksrc.common.mk

#ADDITIONAL_CFLAGS = -std=c99
#ADDITIONAL_CFLAGS += -D_XOPEN_SOURCE=600

#ifeq ($(call version_lt, $(call version_gcc), 5),1)
#ADDITIONAL_CFLAGS += -D_GNU_SOURCE
#endif

include ../../mk/spksrc.cross-meson.mk
1 change: 1 addition & 0 deletions cross/gst-omx/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib:lib/gstreamer-1.0/libgstomx.so
3 changes: 3 additions & 0 deletions cross/gst-omx/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gst-omx-1.20.3.tar.xz SHA1 b67f876a797629b12e7e6ab7444c28cfc811f393
gst-omx-1.20.3.tar.xz SHA256 8db48040bb41f09edf8d17ff6d16c54888d7777ba4501c2c69f0083350ea9a15
gst-omx-1.20.3.tar.xz MD5 e49a1f3a3460878ed015555764971a9b
Binary file added cross/realtek-omx/.Makefile.swp
Binary file not shown.
34 changes: 34 additions & 0 deletions cross/realtek-omx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
PKG_NAME = realtek-omx
PKG_VERS = 2.4.9-1626
PKG_EXT = spk
PKG_DIST_NAME = VideoStation-rtd1296-$(PKG_VERS).$(PKG_EXT)
#PKG_DIST_NAME = $(PKG_NAME)src-$(PKG_VERS).$(PKG_EXT)
#PKG_DIST_SITE = https://archive.synology.com/download/Package/VideoStation/$(PKG_VERS)
PKG_DIST_SITE = https://global.download.synology.com/download/Package/spk/VideoStation/$(PKG_VERS)
#https://global.download.synology.com/download/Package/spk/VideoStation/2.4.9-1626/VideoStation-rtd1296-2.4.9-1626.spk
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS =

HOMEPAGE = https://rarlab.com
COMMENT = Extract files from rar archives.
LICENSE = freeware

PRE_EXTRACT_TARGET = realtek-libomx_pre-extract
POST_EXTRACT_TARGET = realtek-libomx_post-extract
INSTALL_TARGET = realtek-libomx_install

include ../../mk/spksrc.install-resources.mk

.PHONY: realtek-libomx_pre-extract
realtek-libomx_pre-extract:
mkdir $(WORK_DIR)/$(PKG_DIR)

.PHONY: realtek-libomx_post-extract
realtek-libomx_post-extract:
chmod 755 $(WORK_DIR)/$(PKG_DIR)/lib/gstreamer/gstreamer-1.0

.PHONY: realtek-libomx_install
realtek-libomx_install:
install -m 755 -d $(STAGING_INSTALL_PREFIX)/lib/realtek
tar -cf - -C $(WORK_DIR)/$(PKG_DIR)/lib/realtek . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/lib/realtek
3 changes: 3 additions & 0 deletions cross/realtek-omx/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VideoStation-rtd1296-2.4.9-1626.spk SHA1 c0c7d30d8eb7993f4d1e9b0a0c81be177dc07e7e
VideoStation-rtd1296-2.4.9-1626.spk SHA256 cc8a7e6c0cf598b256b56542d0ec8c4c3bdc530f2328017fe0c1eb1c87ac7495
VideoStation-rtd1296-2.4.9-1626.spk MD5 224c03b009bf94631e61f780cad3c802
1 change: 1 addition & 0 deletions mk/spksrc.extract.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ EXTRACT_PATH ?= $(WORK_DIR)
# Extract commands (optionally use TAR_CMD="fakeroot tar" as workaround on OSX)
TAR_CMD ?= tar
ifeq ($(strip $(EXTRACT_CMD.$(DIST_EXT))),)
EXTRACT_CMD.spk = $(TAR_CMD) --to-command='tar -Jxf - -C $(EXTRACT_PATH)/$(PKG_DIR)' -xf $(DIST_FILE) package.tgz
EXTRACT_CMD.tgz = $(TAR_CMD) -xzpf $(DIST_FILE) -C $(EXTRACT_PATH)
EXTRACT_CMD.txz = $(TAR_CMD) -xpf $(DIST_FILE) -C $(EXTRACT_PATH)
EXTRACT_CMD.tar.gz = $(TAR_CMD) -xzpf $(DIST_FILE) -C $(EXTRACT_PATH)
Expand Down

0 comments on commit b35ff82

Please sign in to comment.