2018-08-02 01:07:15 +10:00
|
|
|
# Description: Vulkan validation layers, 32bit
|
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2022-06-16 17:04:45 +02:00
|
|
|
# Depends on: spirv-tools-32 vulkan-validation-layers xorg-libxrandr-32 robin-hood-hashing-32
|
2020-07-24 18:37:50 +10:00
|
|
|
# Optional: wayland-32
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
name=vulkan-validation-layers-32
|
2023-04-30 09:52:29 +02:00
|
|
|
version=1.3.243.0
|
2022-06-16 17:04:45 +02:00
|
|
|
release=1
|
2021-09-24 22:57:09 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$version/Vulkan-ValidationLayers-$version.tar.gz
|
2023-04-30 09:52:29 +02:00
|
|
|
vulkan-layers-1.3.243-Build-shared-libs.patch)
|
2018-08-02 01:07:15 +10:00
|
|
|
build() {
|
2023-04-30 09:52:29 +02:00
|
|
|
patch -d Vulkan-ValidationLayers-sdk-$version -p1 -i $SRC/vulkan-layers-1.3.243-Build-shared-libs.patch
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2021-04-11 01:54:39 +10:00
|
|
|
prt-get isinst wayland-32 || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
|
2022-11-06 09:02:30 +00:00
|
|
|
cmake -S Vulkan-ValidationLayers-sdk-$version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
|
2021-04-11 01:54:39 +10:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib32 \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
|
2022-11-06 09:02:30 +00:00
|
|
|
-D SPIRV_HEADERS_INSTALL_DIR=/usr \
|
|
|
|
-D VULKAN_HEADERS_INSTALL_DIR=/usr \
|
2021-04-11 01:54:39 +10:00
|
|
|
-D BUILD_TESTS=OFF \
|
|
|
|
-D BUILD_LAYER_SUPPORT_FILES=ON \
|
2022-02-20 23:06:05 +11:00
|
|
|
-D USE_ROBIN_HOOD_HASHING=ON \
|
2020-11-01 16:49:43 +11:00
|
|
|
-Wno-dev
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2020-06-07 18:42:30 +10:00
|
|
|
cmake --build build
|
2022-11-06 09:02:30 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2018-08-10 20:24:40 +10:00
|
|
|
rm -r $PKG/usr/{include,share}
|
2018-08-02 01:07:15 +10:00
|
|
|
}
|