2019-04-28 13:08:16 +10:00
|
|
|
# Description: Vulkan validation layers
|
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: glslang vulkan-loader
|
|
|
|
|
|
|
|
name=vulkan-validation-layers
|
2020-07-24 01:26:55 +10:00
|
|
|
version=1.2.141
|
2020-06-07 18:01:27 +10:00
|
|
|
release=1
|
2020-07-24 01:26:55 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/v$version/Vulkan-ValidationLayers-v$version.tar.gz
|
|
|
|
fix_shared.patch
|
|
|
|
16d17ebf3762f24b3eb06e04843efb7f7dbf8438.patch)
|
2019-04-28 13:08:16 +10:00
|
|
|
|
|
|
|
build() {
|
2020-07-24 01:26:55 +10:00
|
|
|
patch -d Vulkan-ValidationLayers-$version -p1 -i $SRC/fix_shared.patch
|
|
|
|
patch -d Vulkan-ValidationLayers-$version -p1 -i $SRC/16d17ebf3762f24b3eb06e04843efb7f7dbf8438.patch
|
2019-04-28 13:08:16 +10:00
|
|
|
|
2020-07-24 01:26:55 +10:00
|
|
|
cmake -SVulkan-ValidationLayers-$version -Bbuild -GNinja \
|
2020-06-07 18:01:27 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX='/usr' \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR='lib' \
|
2019-04-28 13:08:16 +10:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-06-07 18:01:27 +10:00
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DBUILD_TESTS=OFF \
|
|
|
|
-DGLSLANG_INSTALL_DIR='/usr' \
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR='/usr/include/vulkan/' \
|
2019-08-30 19:12:36 +10:00
|
|
|
-DBUILD_LAYER_SUPPORT_FILES=ON \
|
|
|
|
-DBUILD_WSI_XCB_SUPPORT=ON \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=ON \
|
2020-07-24 01:26:55 +10:00
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT="$(prt-get isinst wayland &> /dev/null && echo ON || echo OFF)" \
|
|
|
|
-Wno-dev
|
2019-04-28 13:08:16 +10:00
|
|
|
|
2020-06-07 18:01:27 +10:00
|
|
|
cmake --build build
|
2020-07-08 23:14:57 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-04-28 13:08:16 +10:00
|
|
|
}
|