36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Description: Vulkan validation layers
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: glslang robin-hood-hashing vulkan-headers xorg-libxrandr
|
|
# Optional: wayland
|
|
|
|
name=vulkan-validation-layers
|
|
_name=Vulkan-ValidationLayers-sdk
|
|
version=1.3.250.0
|
|
_version=sdk-$version
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/$_version/$_name-$version.tar.gz
|
|
vulkan-layers-1.3.250-Build-shared-libs.patch)
|
|
|
|
build() {
|
|
patch -d $_name-$version -p1 -i $SRC/vulkan-layers-1.3.250-Build-shared-libs.patch
|
|
|
|
prt-get isinst wayland || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
cmake -S $_name-$version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
|
|
-D CMAKE_SKIP_RPATH=ON \
|
|
-D SPIRV_HEADERS_INSTALL_DIR=/usr \
|
|
-D VULKAN_HEADERS_INSTALL_DIR=/usr \
|
|
-D BUILD_LAYER_SUPPORT_FILES=ON \
|
|
-D USE_ROBIN_HOOD_HASHING=ON \
|
|
-D BUILD_TESTS=OFF \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|