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:
3 files changed, 111 insertions, 0 deletions
diff --git a/packages/m/audiocoding/Makefile b/packages/m/audiocoding/Makefile
new file mode 100644
index 0000000..6850bb2
--- /dev/null
+++ b/packages/m/audiocoding/Makefile
@@ -0,0 +1,25 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := faac  \
+           faad2
+
+
+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/audiocoding/faac/Makefile b/packages/m/audiocoding/faac/Makefile
new file mode 100644
index 0000000..3d0bad4
--- /dev/null
+++ b/packages/m/audiocoding/faac/Makefile
@@ -0,0 +1,47 @@
+#
+# Project Home:
+# ============
+# https://www.audiocoding.com/faac.html
+#
+# Downloads:
+# =========
+# https://www.audiocoding.com/downloads.html
+#
+
+url         = https://downloads.sourceforge.net/faac
+
+versions    = 1.28 1.29.9.2 1.30
+
+pkgname     = faac
+suffix      = tar.gz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	   if [ "$$version" = "1.30" ] ; then \
+	     wget -N $(url)/$(pkgname)-1_30.$(suffix) ; \
+	     tar xzf $(pkgname)-1_30.$(suffix) ; \
+	     mv $(pkgname)-1_30 $(pkgname)-1.30 ; \
+	     tar czf $(pkgname)-1.30.$(suffix) $(pkgname)-1.30 ; \
+	     rm -rf $(pkgname)-1.30 $(pkgname)-1_30.$(suffix) ; \
+	   else \
+	     wget -N $(url)/$(pkgname)-$${version}.$(suffix) ; \
+	   fi ; \
+	 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) $(sha1s)
diff --git a/packages/m/audiocoding/faad2/Makefile b/packages/m/audiocoding/faad2/Makefile
new file mode 100644
index 0000000..dee1327
--- /dev/null
+++ b/packages/m/audiocoding/faad2/Makefile
@@ -0,0 +1,71 @@
+#
+# Project Home:
+# ============
+# https://github.com/knik0/faad2
+#
+# GitHub:
+# ======
+# https://github.com/knik0/faad2
+#
+# Clone:
+# =====
+# git clone https://github.com/knik0/faad2.git
+#
+
+url        = https://github.com/knik0
+
+repo_name  = faad2
+
+#
+# List of tags to be extracted:
+# ============================
+#                                               hash | tag
+#            ----------------------------------------+-----
+revisions  = 3918dee56063500d0aa23d6c3c94b211ac471a8c:2.10.1
+
+git_repo   = .git_clone
+
+suffix     = tar.xz
+
+versions   = $(foreach tag, $(revisions), $(shell echo $(tag) | cut -f 2 -d ':'))
+
+tarballs   = $(addsuffix .$(suffix), $(addprefix $(repo_name)-, $(versions)))
+sha1s      = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+	@echo -e "\n======= Clone $(repo_name).git repository =======\n"
+	@rm -rf $(repo_name)
+	@git clone $(url)/$(repo_name).git $(repo_name)
+	@touch $@
+
+$(tarballs): $(git_repo)
+	@for revision in $(revisions) ; do \
+	  hash=`echo $$revision    | cut -f 1 -d ':'` ; \
+	  version=`echo $$revision | cut -f 2 -d ':'` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(repo_name)-$$version/ $$hash | \
+	      xz >../$(repo_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+repository_clean: $(sha1s)
+	@echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
+	@rm -rf $(git_repo) $(repo_name)
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)
+	@rm -rf $(git_repo) $(repo_name)