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-12-25 11:25:22 +0300 committer: kx <kx@radix.pro> 2023-12-25 11:25:22 +0300 commit: 93cd785973a3daceabcdc7b98834ae09ea51ba5a parent: 967162a0c61261c8a40e12186c66c6c92e3ffa3e
Commit Summary:
openexr, gegl
Diffstat:
3 files changed, 114 insertions, 0 deletions
diff --git a/packages/l/gegl/Makefile b/packages/l/gegl/Makefile
new file mode 100644
index 0000000..189384f
--- /dev/null
+++ b/packages/l/gegl/Makefile
@@ -0,0 +1,25 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := babl \
+           gegl
+
+
+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/l/gegl/babl/Makefile b/packages/l/gegl/babl/Makefile
new file mode 100644
index 0000000..3612790
--- /dev/null
+++ b/packages/l/gegl/babl/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+#   https://gegl.org/babl
+#
+# Clone:
+# =====
+#   git clone https://gitlab.gnome.org/GNOME/babl.git
+#
+
+url        = https://gitlab.gnome.org/GNOME
+
+repo_name  = babl
+pkg_name   = babl
+suffix     = tar.xz
+
+versions   = 0.1.106
+
+# List of tags to be extracted:
+TAGS       = $(foreach version,$(versions),$(addprefix BABL_, $(shell echo $(version) | sed 's,\.,_,g')))
+
+git_repo   = .git_clone
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_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 version in $(versions) ; do \
+	  tag=BABL_`echo $$version | sed 's,\.,_,g'` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+	      xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+	@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)
diff --git a/packages/l/gegl/gegl/Makefile b/packages/l/gegl/gegl/Makefile
new file mode 100644
index 0000000..1801021
--- /dev/null
+++ b/packages/l/gegl/gegl/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+#   https://www.gegl.org
+#
+# Clone:
+# =====
+#   git clone https://gitlab.gnome.org/GNOME/gegl.git
+#
+
+url        = https://gitlab.gnome.org/GNOME
+
+repo_name  = gegl
+pkg_name   = gegl
+suffix     = tar.xz
+
+versions   = 0.4.46
+
+# List of tags to be extracted:
+TAGS       = $(foreach version,$(versions),$(addprefix GEGL_, $(shell echo $(version) | sed 's,\.,_,g')))
+
+git_repo   = .git_clone
+tarballs   = $(addsuffix .tar.xz, $(addprefix $(pkg_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 version in $(versions) ; do \
+	  tag=GEGL_`echo $$version | sed 's,\.,_,g'` ; \
+	  if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+	    echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+	    ( cd $(repo_name) && \
+	      git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+	      xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+	@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)