Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

343 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-04-08 21:49:09 +0300 committer: kx <kx@radix.pro> 2023-04-08 21:49:09 +0300 commit: 8da99f0df767bd0f30cec5080adccec66eecaab4 parent: bc12d811bfdbcc8ba92fd32a06eabf0644eac6b9
Commit Summary:
media tarballs
Diffstat:
2 files changed, 54 insertions, 0 deletions
diff --git a/packages/m/linuxtv/Makefile b/packages/m/linuxtv/Makefile
new file mode 100644
index 0000000..8fad6b3
--- /dev/null
+++ b/packages/m/linuxtv/Makefile
@@ -0,0 +1,24 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := v4l-utils
+
+
+all-recursive downloads_clean-recursive:
+	@set fnord $(MAKEFLAGS); amf=$$2; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  local_target="$$target"; \
+	  (cd $$subdir && $(MAKE) $$fnord $$local_target) \
+	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+	done; test -z "$$fail"
+
+all: all-recursive
+
+downloads_clean: downloads_clean-recursive
+
+.PHONY: all-recursive downloads_clean-recursive all downloads_clean
diff --git a/packages/m/linuxtv/v4l-utils/Makefile b/packages/m/linuxtv/v4l-utils/Makefile
new file mode 100644
index 0000000..57c9051
--- /dev/null
+++ b/packages/m/linuxtv/v4l-utils/Makefile
@@ -0,0 +1,48 @@
+#
+# Project Home:
+# ============
+# https://linuxtv.org
+#
+# Downloads:
+# =========
+# https://linuxtv.org/downloads/v4l-utils
+#
+
+url         = https://linuxtv.org/downloads/v4l-utils
+
+versions    = 1.6.3 1.8.0 1.8.1 1.10.0 1.10.1 1.22.1 1.24.1
+
+pkgname     = v4l-utils
+suffix      = tar.bz2
+sign_suffix = asc
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+signatures  = $(addsuffix .$(sign_suffix), $(tarballs))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(signatures) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for tarball in $(tarballs) ; do \
+	  wget -N $(url)/$$tarball ; \
+	done
+
+$(signatures): %.$(suffix).$(sign_suffix) : %.$(suffix)
+	@for signature in $@ ; do \
+	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
+	  wget -N $(url)/$$signature ; \
+	  touch $$signature ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(signatures) $(sha1s)