summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2023-10-21 20:38:23 +0300
committerkx <kx@radix.pro>2023-10-21 20:38:23 +0300
commit33c535468f13d3a4097e459e59f666b9b82f7696 (patch)
tree7e2d8f45c953262a35efab4a7a2d7e43b1c7bb33 /packages
parente77b70f7512e4f39acc56c3b9f7f349bc133fb0b (diff)
downloadsources-33c535468f13d3a4097e459e59f666b9b82f7696.tar.xz
SPIR-V updates
Diffstat (limited to 'packages')
-rw-r--r--packages/x/Vulkan/Makefile10
-rw-r--r--packages/x/Vulkan/README6
-rw-r--r--packages/x/Vulkan/SPIRV-Cross-sdk/Makefile59
-rw-r--r--packages/x/Vulkan/SPIRV-Headers-sdk/Makefile59
-rw-r--r--packages/x/Vulkan/SPIRV-Reflect-sdk/Makefile59
-rw-r--r--packages/x/Vulkan/SPIRV-Tools-sdk/Makefile (renamed from packages/x/Vulkan/SPIRV-Tools/Makefile)6
-rw-r--r--packages/x/Vulkan/glslang/Makefile60
7 files changed, 253 insertions, 6 deletions
diff --git a/packages/x/Vulkan/Makefile b/packages/x/Vulkan/Makefile
index 83eed3b..6d73e1f 100644
--- a/packages/x/Vulkan/Makefile
+++ b/packages/x/Vulkan/Makefile
@@ -4,8 +4,11 @@
# $ tree -fid .
#
-SUBDIRS := SPIRV-LLVM-Translator \
- SPRIV-Tools \
+SUBDIRS := SPIRV-Cross-sdk \
+ SPIRV-Headers-sdk \
+ SPIRV-LLVM-Translator \
+ SPIRV-Reflect-sdk \
+ SPIRV-Tools-sdk \
Vulkan-Docs \
Vulkan-ExtensionLayer-sdk \
Vulkan-Headers-sdk \
@@ -13,7 +16,8 @@ SUBDIRS := SPIRV-LLVM-Translator \
Vulkan-LunarG-Tools-sdk \
Vulkan-Tools-sdk \
Vulkan-ValidationLayers-sdk \
- gfxreconstruct
+ gfxreconstruct \
+ glslang
all-recursive downloads_clean-recursive:
diff --git a/packages/x/Vulkan/README b/packages/x/Vulkan/README
new file mode 100644
index 0000000..25a8bc6
--- /dev/null
+++ b/packages/x/Vulkan/README
@@ -0,0 +1,6 @@
+
+VERSION = 1.3.239.0
+
+https://vulkan.lunarg.com/doc/view/${VERSION}/linux/release_notes.html
+
+This file declares TAGS sdk-${VERSION} \ No newline at end of file
diff --git a/packages/x/Vulkan/SPIRV-Cross-sdk/Makefile b/packages/x/Vulkan/SPIRV-Cross-sdk/Makefile
new file mode 100644
index 0000000..1f68940
--- /dev/null
+++ b/packages/x/Vulkan/SPIRV-Cross-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/SPIRV-Cross
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/SPIRV-Cross.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = SPIRV-Cross
+pkg_name = spirv-cross-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/SPIRV-Headers-sdk/Makefile b/packages/x/Vulkan/SPIRV-Headers-sdk/Makefile
new file mode 100644
index 0000000..83728cd
--- /dev/null
+++ b/packages/x/Vulkan/SPIRV-Headers-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/SPIRV-Headers
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/SPIRV-Headers.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = SPIRV-Headers
+pkg_name = spirv-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/SPIRV-Reflect-sdk/Makefile b/packages/x/Vulkan/SPIRV-Reflect-sdk/Makefile
new file mode 100644
index 0000000..7788502
--- /dev/null
+++ b/packages/x/Vulkan/SPIRV-Reflect-sdk/Makefile
@@ -0,0 +1,59 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/SPIRV-Reflect
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/SPIRV-Reflect.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = SPIRV-Reflect
+pkg_name = spirv-reflect-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/SPIRV-Tools/Makefile b/packages/x/Vulkan/SPIRV-Tools-sdk/Makefile
index 54fcc7b..1996e27 100644
--- a/packages/x/Vulkan/SPIRV-Tools/Makefile
+++ b/packages/x/Vulkan/SPIRV-Tools-sdk/Makefile
@@ -11,10 +11,10 @@
url = https://github.com/KhronosGroup
repo_name = SPIRV-Tools
-pkg_name = spirv-tools
+pkg_name = spirv-tools-sdk
suffix = tar.xz
-versions = 2023.2
+versions = 1.3.239.0
git_repo = .git_clone
tarballs = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
@@ -35,7 +35,7 @@ $(git_repo):
$(tarballs): $(git_repo)
@for version in $(versions) ; do \
- tag=v`echo $$version` ; \
+ tag=sdk-`echo $$version` ; \
if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
echo -e "\n======= Creating '$(pkg_name)-$$version.$(suffix)' snapshot =======" ; \
( cd $(repo_name) && \
diff --git a/packages/x/Vulkan/glslang/Makefile b/packages/x/Vulkan/glslang/Makefile
new file mode 100644
index 0000000..eb747f0
--- /dev/null
+++ b/packages/x/Vulkan/glslang/Makefile
@@ -0,0 +1,60 @@
+#
+# Project Home:
+# ============
+# https://github.com/KhronosGroup/glslang
+#
+# Clone:
+# =====
+# https://github.com/KhronosGroup/glslang.git
+#
+
+url = https://github.com/KhronosGroup
+
+repo_name = glslang
+pkg_name = glslang
+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)
+ exit 1
+ @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)