32 lines
906 B
Plaintext
32 lines
906 B
Plaintext
# Description: API and commands for processing SPIR-V modules
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: spirv-tools
|
|
|
|
name=spirv-tools-32
|
|
version=2019.5
|
|
commit=67f4838659f475d618c120e13d1a196d7e00ba4b
|
|
release=3
|
|
source=(
|
|
#https://github.com/KhronosGroup/SPIRV-Tools/archive//v$version/SPIRV-Tools-v$version.tar.gz
|
|
https://github.com/KhronosGroup/SPIRV-Tools/archive/$commit.tar.gz#/spirv-tools-$commit.tar.gz
|
|
)
|
|
|
|
build() {
|
|
# cd SPIRV-Tools-$commit
|
|
# cd SPIRV-Tools-$version
|
|
|
|
cmake -SSPIRV-Tools-$commit -Bbuild -GNinja \
|
|
-DCMAKE_INSTALL_PREFIX='/usr' \
|
|
-DCMAKE_INSTALL_LIBDIR='lib32' \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSPIRV_WERROR=OFF \
|
|
-DSPIRV-Headers_SOURCE_DIR='/usr' \
|
|
-DPYTHON_EXECUTABLE='/usr/bin/python3'
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --build build --target install
|
|
|
|
rm -r $PKG/usr/{bin,include}
|
|
}
|