blob: 467e28fb227a7a7112740ec045b481998765c10f (
plain)
1 # Description: Vulkan validation layers, 32bit
2 # URL: https://www.khronos.org/vulkan/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: spirv-tools-32 vulkan-validation-layers xorg-libxrandr-32 robin-hood-hashing-32
5 # Optional: wayland-32
6
7 name=vulkan-validation-layers-32
8 version=1.3.236.0
9 release=1
10 source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$version/Vulkan-ValidationLayers-$version.tar.gz
11 fix_shared.patch)
12
13 build() {
14 patch -d Vulkan-ValidationLayers-sdk-$version -p1 -i $SRC/fix_shared.patch
15
16 prt-get isinst wayland-32 || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
17
18 cmake -S Vulkan-ValidationLayers-sdk-$version -B build -G Ninja $PKGMK_VULKAN_VALIDATION_LAYERS \
19 -D CMAKE_INSTALL_PREFIX=/usr \
20 -D CMAKE_INSTALL_LIBDIR=lib32 \
21 -D CMAKE_BUILD_TYPE=Release \
22 -D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
23 -D SPIRV_HEADERS_INSTALL_DIR=/usr \
24 -D VULKAN_HEADERS_INSTALL_DIR=/usr \
25 -D BUILD_TESTS=OFF \
26 -D BUILD_LAYER_SUPPORT_FILES=ON \
27 -D USE_ROBIN_HOOD_HASHING=ON \
28 -Wno-dev
29
30 cmake --build build
31 DESTDIR=$PKG cmake --install build
32
33 rm -r $PKG/usr/{include,share}
34 }
|