39 lines
945 B
Plaintext
39 lines
945 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.4
|
|
commit=3e4abc9ac382b6fc7a88316a700652404b6fb9f7
|
|
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
|
|
fix-cmake-install.patch
|
|
)
|
|
|
|
build() {
|
|
cd SPIRV-Tools-$commit
|
|
# cd SPIRV-Tools-$version
|
|
|
|
patch -p1 -i $SRC/fix-cmake-install.patch
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-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 \
|
|
-G Ninja
|
|
|
|
ninja -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja install
|
|
|
|
rm -r $PKG/usr/{bin,include}
|
|
}
|