forked from ports/compat-32
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
# Description: Vulkan validation layers, 32bit
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: spirv-tools-32 vulkan-loader-32 vulkan-validation-layers
|
|
# Optional: wayland-32
|
|
|
|
name=vulkan-validation-layers-32
|
|
version=1.2.141
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/v$version/Vulkan-ValidationLayers-v$version.tar.gz
|
|
fix_shared.patch
|
|
16d17ebf3762f24b3eb06e04843efb7f7dbf8438.patch)
|
|
|
|
build() {
|
|
patch -d Vulkan-ValidationLayers-$version -p1 -i $SRC/fix_shared.patch
|
|
patch -d Vulkan-ValidationLayers-$version -p1 -i $SRC/16d17ebf3762f24b3eb06e04843efb7f7dbf8438.patch
|
|
|
|
cmake -SVulkan-ValidationLayers-$version -Bbuild -GNinja \
|
|
-DCMAKE_INSTALL_PREFIX='/usr' \
|
|
-DCMAKE_INSTALL_LIBDIR='lib32' \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
-DBUILD_TESTS=False \
|
|
-DGLSLANG_INSTALL_DIR='/usr' \
|
|
-DCMAKE_INSTALL_INCLUDEDIR='/usr/include/vulkan/' \
|
|
-DBUILD_LAYER_SUPPORT_FILES=ON \
|
|
-DBUILD_WSI_XCB_SUPPORT=ON \
|
|
-DBUILD_WSI_XLIB_SUPPORT=ON \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT="$(prt-get isinst wayland-32 &> /dev/null && echo ON || echo OFF)"
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --build build --target install
|
|
|
|
rm -r $PKG/usr/{include,share}
|
|
}
|