aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextra/spirv-llvm-translator/build11
-rw-r--r--extra/spirv-llvm-translator/checksums2
-rw-r--r--extra/spirv-llvm-translator/depends3
-rw-r--r--extra/spirv-llvm-translator/meta3
-rw-r--r--extra/spirv-llvm-translator/sources1
-rw-r--r--extra/spirv-llvm-translator/version1
6 files changed, 21 insertions, 0 deletions
diff --git a/extra/spirv-llvm-translator/build b/extra/spirv-llvm-translator/build
new file mode 100755
index 00000000..43122323
--- /dev/null
+++ b/extra/spirv-llvm-translator/build
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv \
+ -DLLVM_SPIRV_INCLUDE_TESTS=OFF
+
+cmake --build build
+cmake --install build
diff --git a/extra/spirv-llvm-translator/checksums b/extra/spirv-llvm-translator/checksums
new file mode 100644
index 00000000..e272a3b8
--- /dev/null
+++ b/extra/spirv-llvm-translator/checksums
@@ -0,0 +1,2 @@
+%BLAKE3
+e87a2de2d7bb94d1f538094507bf8dfc1ca23ac48e6894f9ba7f5252655d868e SPIRV-LLVM-Translator-19.1.0.tar.gz
diff --git a/extra/spirv-llvm-translator/depends b/extra/spirv-llvm-translator/depends
new file mode 100644
index 00000000..bf5fd1b4
--- /dev/null
+++ b/extra/spirv-llvm-translator/depends
@@ -0,0 +1,3 @@
+cmake make
+llvm
+spirv-tools
diff --git a/extra/spirv-llvm-translator/meta b/extra/spirv-llvm-translator/meta
new file mode 100644
index 00000000..5b15021e
--- /dev/null
+++ b/extra/spirv-llvm-translator/meta
@@ -0,0 +1,3 @@
+description: API and commands for processing SPIR-V modules
+license: NCSA
+maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/extra/spirv-llvm-translator/sources b/extra/spirv-llvm-translator/sources
new file mode 100644
index 00000000..a726779b
--- /dev/null
+++ b/extra/spirv-llvm-translator/sources
@@ -0,0 +1 @@
+https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/v19.1.0/SPIRV-LLVM-Translator-19.1.0.tar.gz
diff --git a/extra/spirv-llvm-translator/version b/extra/spirv-llvm-translator/version
new file mode 100644
index 00000000..119d7b4b
--- /dev/null
+++ b/extra/spirv-llvm-translator/version
@@ -0,0 +1 @@
+19.1.0 1