forked from ports/compat-32
35 lines
1.2 KiB
Plaintext
35 lines
1.2 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-validation-layers xorg-libxrandr-32 robin-hood-hashing-32
|
|
# Optional: wayland-32
|
|
|
|
name=vulkan-validation-layers-32
|
|
version=1.3.250.1
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$version/Vulkan-ValidationLayers-$version.tar.gz
|
|
vulkan-layers-1.3.250-Build-shared-libs.patch)
|
|
|
|
build() {
|
|
patch -d Vulkan-ValidationLayers-sdk-$version -p1 -i $SRC/vulkan-layers-1.3.250-Build-shared-libs.patch
|
|
|
|
prt-get isinst wayland-32 || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
cmake -S Vulkan-ValidationLayers-sdk-$version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
|
|
-D SPIRV_HEADERS_INSTALL_DIR=/usr \
|
|
-D VULKAN_HEADERS_INSTALL_DIR=/usr \
|
|
-D BUILD_TESTS=OFF \
|
|
-D BUILD_LAYER_SUPPORT_FILES=ON \
|
|
-D USE_ROBIN_HOOD_HASHING=ON \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -r $PKG/usr/{include,share}
|
|
}
|