From b35ff8206b0090aff23c74955265a4cac7ac0a7c Mon Sep 17 00:00:00 2001 From: Vincent Fortier Date: Sat, 3 Sep 2022 22:50:58 +0000 Subject: [PATCH] spksrc: Allow managing spk files for realtek hardware acceleration --- cross/gst-omx/Makefile | 33 +++++++++++++++++++++++++++++++ cross/gst-omx/PLIST | 1 + cross/gst-omx/digests | 3 +++ cross/realtek-omx/.Makefile.swp | Bin 0 -> 12288 bytes cross/realtek-omx/Makefile | 34 ++++++++++++++++++++++++++++++++ cross/realtek-omx/digests | 3 +++ mk/spksrc.extract.mk | 1 + 7 files changed, 75 insertions(+) create mode 100644 cross/gst-omx/Makefile create mode 100644 cross/gst-omx/PLIST create mode 100644 cross/gst-omx/digests create mode 100644 cross/realtek-omx/.Makefile.swp create mode 100644 cross/realtek-omx/Makefile create mode 100644 cross/realtek-omx/digests diff --git a/cross/gst-omx/Makefile b/cross/gst-omx/Makefile new file mode 100644 index 000000000000..8b45b1052d39 --- /dev/null +++ b/cross/gst-omx/Makefile @@ -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 diff --git a/cross/gst-omx/PLIST b/cross/gst-omx/PLIST new file mode 100644 index 000000000000..a1288750ab4b --- /dev/null +++ b/cross/gst-omx/PLIST @@ -0,0 +1 @@ +lib:lib/gstreamer-1.0/libgstomx.so diff --git a/cross/gst-omx/digests b/cross/gst-omx/digests new file mode 100644 index 000000000000..b8f4da967e3f --- /dev/null +++ b/cross/gst-omx/digests @@ -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 diff --git a/cross/realtek-omx/.Makefile.swp b/cross/realtek-omx/.Makefile.swp new file mode 100644 index 0000000000000000000000000000000000000000..367e4a364d5b054d167ab2accc2fa2c4e2483a46 GIT binary patch literal 12288 zcmeI2zi-n(6vtng2+&f|f8c04G=uFX(9#xlh*FbAZ5%5xrA(1yUs5Y}9N8{yrSfA% zVgrc*#LRzy#NNLE!~o(CV1*4)#B*XdNlV&DOhwPiS3cjpANM|Yi4x_ivm5yWTM$!# z*EqnN*AvG0`%hy^0>E!Ie9s66PQQk=d(<(M>VDvH-Qk`Tbr_!O`x5rq0dEMdvnv(! z2CrE*KRq#x5&>Y5g-CYfCvzQb4Wlp0iIj} zn7)jY$N&H1-~ZpP0(?Lnpq`>isGnm1FHsEjdlcXh^#k=C^%3Jan)LVZOYpq`=Hb2^7iY05-^2oM1xKm>>Y5g-ERn?NGa zJti16CNLq(rf2RIOKX*td?_hS&!}s;PSduk@d;KYvVGR}**)?pYnfbL$yM?Sw$|4x zYDvD6-%Lt9Zji8=exTbn6C8GHZjK2iCL6{vJ~@lQ@bGLU3bO>Fx>{83FR{OmkGt5pUW_mzoD zeYQjI#Mkp#St-j5CsFe_-_bn|*>XdYy-;r47sEZaL5c%WX<&@us*aq~_D}ef@$L zn5p#QywDvN(KnhHk}l`9-a7tq7JZdt(K`>X$E?hi(>{4yVk3z?9T>PwnKi5Ob_W%F@ literal 0 HcmV?d00001 diff --git a/cross/realtek-omx/Makefile b/cross/realtek-omx/Makefile new file mode 100644 index 000000000000..e5725af4ff1e --- /dev/null +++ b/cross/realtek-omx/Makefile @@ -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 diff --git a/cross/realtek-omx/digests b/cross/realtek-omx/digests new file mode 100644 index 000000000000..a3839fc18a95 --- /dev/null +++ b/cross/realtek-omx/digests @@ -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 diff --git a/mk/spksrc.extract.mk b/mk/spksrc.extract.mk index 1e17af8c3718..63a4f5e5abb4 100644 --- a/mk/spksrc.extract.mk +++ b/mk/spksrc.extract.mk @@ -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)