diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-27 14:15:45 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-27 14:32:12 -0300 |
commit | 6c0510c98b8c1460abc7063f3f793e9231481d93 (patch) | |
tree | 97c24a1ab485763c88fc179f10b726741b439bb7 | |
parent | 811a33d4c1caac67e4c4b6ac76023a767c37350d (diff) | |
download | aports-6c0510c98b8c1460abc7063f3f793e9231481d93.tar.bz2 aports-6c0510c98b8c1460abc7063f3f793e9231481d93.tar.xz |
testing/spirv-tools: new aport
https://github.com/KhronosGroup/SPIRV-Tools
API and commands for processing SPIR-V modules
-rw-r--r-- | testing/spirv-tools/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/spirv-tools/APKBUILD b/testing/spirv-tools/APKBUILD new file mode 100644 index 0000000000..20d5eb2617 --- /dev/null +++ b/testing/spirv-tools/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=spirv-tools +_pkgname=SPIRV-Tools +pkgver=2019.3 +pkgrel=0 +pkgdesc="API and commands for processing SPIR-V modules" +options="!check" # Requires git checkout of gtest in external/ +url="https://github.com/KhronosGroup/SPIRV-Tools" +arch="all" +license="Apache-2.0" +makedepends="cmake python3 spirv-headers" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/KhronosGroup/$_pkgname/archive/v${pkgver}.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DSPIRV_WERROR=OFF \ + -DSPIRV_BUILD_COMPRESSION=ON \ + -DSPIRV_SKIP_TESTS=ON \ + -DSPIRV-Headers_SOURCE_DIR=/usr \ + ${CMAKE_CROSSOPTS} . + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="1c3a0ee2db6bb581451e1f7fcf778699ec4634ad88d69e36740ac3e9dde8e1f8ddc17bc52904728fb5019ca62ff008f12f17ce7764e09bc04aea7e8418cbe68e spirv-tools-2019.3.tar.gz" |