author: kx <kx@radix.pro> 2023-04-07 15:29:50 +0300
committer: kx <kx@radix.pro> 2023-04-07 15:29:50 +0300
commit: d8b69aa468bb1efa108e032ccde0b85fa63a5c64
parent: 63c35171c66d6e0f9add54c01bf81c127b0d9384
Commit Summary:
Diffstat:
9 files changed, 404 insertions, 0 deletions
diff --git a/packages/x/Vulkan/Makefile b/packages/x/Vulkan/Makefile
new file mode 100644
index 0000000..32d0809
--- /dev/null
+++ b/packages/x/Vulkan/Makefile
@@ -0,0 +1,31 @@
+
+#
+# Following command helps to cheate SUBDIRS list:
+# $ tree -fid .
+#
+
+SUBDIRS := Vulkan-Docs \
+ Vulkan-ExtensionLayer-sdk \
+ Vulkan-Headers-sdk \
+ Vulkan-Loader-sdk \
+ Vulkan-LunarG-Tools-sdk \
+ Vulkan-Tools-sdk \
+ Vulkan-ValidationLayers-sdk \
+ gfxreconstruct
+
+
+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/x/Vulkan/Vulkan-Docs/Makefile b/packages/x/Vulkan/Vulkan-Docs/Makefile
new file mode 100644
index 0000000..0da98a9
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-Docs/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/Vulkan-Docs
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/Vulkan-Docs.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = Vulkan-Docs
+pkg_name = vulkan-docs
+suffix = tar.xz
+
+versions = 1.3.239
+
+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=v`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_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/x/Vulkan/Vulkan-ExtensionLayer-sdk/Makefile b/packages/x/Vulkan/Vulkan-ExtensionLayer-sdk/Makefile
new file mode 100644
index 0000000..f04bcc2
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-ExtensionLayer-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/Vulkan-ExtensionLayer
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/Vulkan-ExtensionLayer.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = Vulkan-ExtensionLayer
+pkg_name = vulkan-extension-layer-sdk
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_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/x/Vulkan/Vulkan-Headers-sdk/Makefile b/packages/x/Vulkan/Vulkan-Headers-sdk/Makefile
new file mode 100644
index 0000000..829c527
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-Headers-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/Vulkan-Headers
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/Vulkan-Headers.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = Vulkan-Headers
+pkg_name = vulkan-headers-sdk
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_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/x/Vulkan/Vulkan-Loader-sdk/Makefile b/packages/x/Vulkan/Vulkan-Loader-sdk/Makefile
new file mode 100644
index 0000000..8a04654
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-Loader-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/Vulkan-Loader
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/Vulkan-Loader.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = Vulkan-Loader
+pkg_name = vulkan-loader-sdk
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_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/x/Vulkan/Vulkan-LunarG-Tools-sdk/Makefile b/packages/x/Vulkan/Vulkan-LunarG-Tools-sdk/Makefile
new file mode 100644
index 0000000..d93dda7
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-LunarG-Tools-sdk/Makefile
@@ -0,0 +1,65 @@
+#
+# Project Home:
+# ============
+# https://github.com/LunarG/VulkanTools
+#
+# Clone:
+# =====
+# https://github.com/LunarG/VulkanTools.git
+#
+
+url = https://github.com/LunarG
+
+repo_name = VulkanTools
+pkg_name = vulkan-lunarg-tools-sdk
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_name)-$$version.$(suffix)' snapshot =======" ; \
+ ( cd $(repo_name) ; \
+ git submodule update --init ; \
+ git archive --format=tar --prefix=$(pkg_name)-$${version}/ --output=../$(pkg_name)-$${version}.tar $${tag} ; \
+ cmd="git submodule foreach --recursive 'git archive --format=tar --prefix=$(pkg_name)-$${version}/\$$sm_path/ HEAD --output=\$$toplevel/../$(pkg_name)-$${version}-sub-\$$sha1.tar'" ; \
+ eval $${cmd} ; \
+ ) ; \
+ tar --concatenate --file $(pkg_name)-$${version}.tar $(pkg_name)-$${version}-sub-*.tar ; \
+ rm -f $(pkg_name)-$${version}-sub-*.tar ; \
+ xz $(pkg_name)-$${version}.tar ; \
+ 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/x/Vulkan/Vulkan-Tools-sdk/Makefile b/packages/x/Vulkan/Vulkan-Tools-sdk/Makefile
new file mode 100644
index 0000000..487b632
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-Tools-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/Vulkan-Tools
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/Vulkan-Tools.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = Vulkan-Tools
+pkg_name = vulkan-tools-sdk
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_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/x/Vulkan/Vulkan-ValidationLayers-sdk/Makefile b/packages/x/Vulkan/Vulkan-ValidationLayers-sdk/Makefile
new file mode 100644
index 0000000..1b41e15
--- /dev/null
+++ b/packages/x/Vulkan/Vulkan-ValidationLayers-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/Vulkan-ValidationLayers
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/Vulkan-ValidationLayers.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = Vulkan-ValidationLayers
+pkg_name = vulkan-validation-layers-sdk
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_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/x/Vulkan/gfxreconstruct/Makefile b/packages/x/Vulkan/gfxreconstruct/Makefile
new file mode 100644
index 0000000..fb2a6af
--- /dev/null
+++ b/packages/x/Vulkan/gfxreconstruct/Makefile
@@ -0,0 +1,65 @@
+#
+# Project Home:
+# ============
+# https://github.com/LunarG/gfxreconstruct
+#
+# Clone:
+# =====
+# https://github.com/LunarG/gfxreconstruct.git
+#
+
+url = https://github.com/LunarG
+
+repo_name = gfxreconstruct
+pkg_name = gfxreconstruct
+suffix = tar.xz
+
+versions = 1.3.239.0
+
+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=sdk-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(pkg_name)-$$version.$(suffix)' snapshot =======" ; \
+ ( cd $(repo_name) ; \
+ git submodule update --init ; \
+ git archive --format=tar --prefix=$(pkg_name)-$${version}/ --output=../$(pkg_name)-$${version}.tar $${tag} ; \
+ cmd="git submodule foreach --recursive 'git archive --format=tar --prefix=$(pkg_name)-$${version}/\$$sm_path/ HEAD --output=\$$toplevel/../$(pkg_name)-$${version}-sub-\$$sha1.tar'" ; \
+ eval $${cmd} ; \
+ ) ; \
+ tar --concatenate --file $(pkg_name)-$${version}.tar $(pkg_name)-$${version}-sub-*.tar ; \
+ rm -f $(pkg_name)-$${version}-sub-*.tar ; \
+ xz $(pkg_name)-$${version}.tar ; \
+ 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)