aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Krupenik <dennis@krupenik.com>2020-06-20 00:13:40 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-08-30 19:53:20 -0300
commit8aa9afe597851e4fc8ab6d19b4a07fb3eaa425e0 (patch)
treeee05957fe958ce3f3391795222653803114a9f54
parentae5bea655c264885fd98c1e9cbfd86e491cc0cd6 (diff)
downloadaports-8aa9afe597851e4fc8ab6d19b4a07fb3eaa425e0.tar.gz
aports-8aa9afe597851e4fc8ab6d19b4a07fb3eaa425e0.tar.bz2
aports-8aa9afe597851e4fc8ab6d19b4a07fb3eaa425e0.tar.xz
testing/spirv-llvm-translator: new aport
Library for bi-directional translation between SPIR-V and LLVM IR https://github.com/KhronosGroup/SPIRV-LLVM-Translator
-rw-r--r--testing/spirv-llvm-translator/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/spirv-llvm-translator/APKBUILD b/testing/spirv-llvm-translator/APKBUILD
new file mode 100644
index 0000000000..41521db3bd
--- /dev/null
+++ b/testing/spirv-llvm-translator/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dennis Krupenik <dennis@krupenik.com>
+# Maintainer: Dennis Krupenik <dennis@krupenik.com>
+pkgname=spirv-llvm-translator
+pkgver=10.0.0
+pkgrel=0
+pkgdesc="Library for bi-directional translation between SPIR-V and LLVM IR"
+options="!check" # tests require llvm-lit
+url="https://github.com/KhronosGroup/SPIRV-LLVM-Translator"
+arch="all"
+license="NCSA"
+depends_dev="clang-dev llvm-dev spirv-tools-dev"
+makedepends="$depends_dev cmake llvm-static"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/v$pkgver.tar.gz"
+builddir="$srcdir/SPIRV-LLVM-Translator-$pkgver"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=True \
+ -DLLVM_SPIRV_INCLUDE_TESTS=1 \
+ $CMAKE_CROSSOPTS .
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+sha512sums="d6400bb3e4df780358b5d6d0af889e7654b7dfd472c8d41b77ff98e7ff1bd017c289ecacb59a3dd7bfddb1a5108e21028aa770bf645e06178610bb322de905be spirv-llvm-translator-10.0.0.tar.gz"