1
0
forked from ports/contrib

[notify] spirv-tools: initial import, this will have files that clash with glslang, either force install or remove glslang first then rebuild glslang

This commit is contained in:
Danny Rawlins 2019-04-20 11:46:01 +10:00
parent 471f0f4984
commit 87055a3fc2
3 changed files with 61 additions and 0 deletions

24
spirv-tools/.footprint Normal file
View File

@ -0,0 +1,24 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/spirv-as
-rwxr-xr-x root/root usr/bin/spirv-cfg
-rwxr-xr-x root/root usr/bin/spirv-dis
-rwxr-xr-x root/root usr/bin/spirv-lesspipe.sh
-rwxr-xr-x root/root usr/bin/spirv-link
-rwxr-xr-x root/root usr/bin/spirv-opt
-rwxr-xr-x root/root usr/bin/spirv-stats
-rwxr-xr-x root/root usr/bin/spirv-val
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/spirv-tools/
-rw-r--r-- root/root usr/include/spirv-tools/libspirv.h
-rw-r--r-- root/root usr/include/spirv-tools/libspirv.hpp
-rw-r--r-- root/root usr/include/spirv-tools/linker.hpp
-rw-r--r-- root/root usr/include/spirv-tools/optimizer.hpp
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libSPIRV-Tools-link.a
-rw-r--r-- root/root usr/lib/libSPIRV-Tools-opt.a
-rwxr-xr-x root/root usr/lib/libSPIRV-Tools-shared.so
-rw-r--r-- root/root usr/lib/libSPIRV-Tools.a
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/SPIRV-Tools-shared.pc
-rw-r--r-- root/root usr/lib/pkgconfig/SPIRV-Tools.pc

6
spirv-tools/.signature Normal file
View File

@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF34j+Dd6JTqLPXTDqIMCgJqMyDeqr2bkqJnVVkdRqGFQtHYYF3bVsFMOtdSjAlnhpx4mcjk1LMRGhySXx1hINLwc=
SHA256 (Pkgfile) = dc39964b29c9a658030c38db9d6f26cdaab851424852c2b687b2bccebf2a81ee
SHA256 (.footprint) = ebe56e1cb3e3ea28669c31e328c704adac320318cd0427ad2f5e0cf5dc86b02a
SHA256 (SPIRV-Tools-v2018.5.tar.gz) = bc56f1b53827811095aad330e078604f06319c4b0648a4bbe183a4bfe5b3ef58
SHA256 (8bea0a266ac9b718aa0818d9e3a47c0b77c2cb23.tar.gz) = a67f839a8968bbf6fb50b77f20a55e699797c349d59fa6328303cb00d1e65cbd

31
spirv-tools/Pkgfile Normal file
View File

@ -0,0 +1,31 @@
# Description: API and commands for processing SPIR-V modules
# URL: https://www.khronos.org/vulkan/
# Maintainer: Pedja, predivan at mts dot rs
# Depends on: cmake python3
name=spirv-tools
version=2018.5
_commit=8bea0a266ac9b718aa0818d9e3a47c0b77c2cb23
release=1
source=(
https://github.com/KhronosGroup/SPIRV-Tools/archive//v$version/SPIRV-Tools-v$version.tar.gz
https://github.com/KhronosGroup/SPIRV-Headers/archive/$_commit.tar.gz
)
build() {
mv SPIRV-Headers-$_commit SPIRV-Headers
cd SPIRV-Tools-$version
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DSPIRV_WERROR=Off \
-DSPIRV-Headers_SOURCE_DIR=${SRC}/SPIRV-Headers
make
make DESTDIR=$PKG install
}