diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-27 17:21:47 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-28 15:18:09 +0000 |
commit | 6658bc43d0b0ec51d77888abc89b4d4df43d697b (patch) | |
tree | 67ab8f87724051d63903c0804bcd47335c1ef2db /community/spirv-tools/APKBUILD | |
parent | d036718feb2cfbebbcc9f72fbf57d4d56338623d (diff) | |
download | aports-6658bc43d0b0ec51d77888abc89b4d4df43d697b.tar.bz2 aports-6658bc43d0b0ec51d77888abc89b4d4df43d697b.tar.xz |
community/spirv-tools: move from testing
Diffstat (limited to 'community/spirv-tools/APKBUILD')
-rw-r--r-- | community/spirv-tools/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/spirv-tools/APKBUILD b/community/spirv-tools/APKBUILD new file mode 100644 index 0000000000..ca502652c6 --- /dev/null +++ b/community/spirv-tools/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=spirv-tools +_pkgname=SPIRV-Tools +pkgver=2019.3 +pkgrel=2 +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" +depends_dev="spirv-headers $pkgname=$pkgver-r$pkgrel" +makedepends="$depends_dev cmake python3" +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" |