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-02-20 23:06:05 +11:00
|
|
|
# Depends on: spirv-tools-32 vulkan-validation-layers xorg-libxrandr-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
|
2022-02-20 23:06:05 +11:00
|
|
|
version=1.3.204.0
|
|
|
|
_spirv_headers=b42ba6d92faf6b4938e6f22ddd186dbdacc98d78
|
2021-09-26 00:05:09 +10:00
|
|
|
release=2
|
2021-09-24 22:57:09 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-$version/Vulkan-ValidationLayers-$version.tar.gz
|
2021-04-11 01:54:39 +10:00
|
|
|
https://github.com/KhronosGroup/SPIRV-Headers/archive/$_spirv_headers/SPIRV-Headers-$_spirv_headers.tar.gz
|
2021-09-26 00:05:09 +10:00
|
|
|
add-missing-export.patch
|
2022-02-20 23:06:05 +11:00
|
|
|
fix_shared.patch
|
|
|
|
vulkan-layers-1.3.204-Fix-dependency-detection.patch)
|
2018-08-02 01:07:15 +10:00
|
|
|
|
|
|
|
build() {
|
2021-09-24 22:57:09 +10:00
|
|
|
|
|
|
|
(
|
|
|
|
cd Vulkan-ValidationLayers-sdk-$version
|
2022-02-20 23:06:05 +11:00
|
|
|
mkdir -p headers/external/spirv-headers
|
2021-09-24 22:57:09 +10:00
|
|
|
cp -r $SRC/SPIRV-Headers-$_spirv_headers/* headers/external/spirv-headers
|
2021-09-26 00:05:09 +10:00
|
|
|
|
|
|
|
patch -p1 -i $SRC/add-missing-export.patch
|
|
|
|
patch -p1 -i $SRC/fix_shared.patch
|
2022-02-20 23:06:05 +11:00
|
|
|
patch -p1 -i $SRC/vulkan-layers-1.3.204-Fix-dependency-detection.patch
|
2021-09-24 22:57:09 +10:00
|
|
|
)
|
2018-08-02 01:07:15 +10:00
|
|
|
|
2021-04-11 01:54:39 +10:00
|
|
|
prt-get isinst ninja && PKGMK_VULKAN_VALIDATION_LAYERS+=' -G Ninja'
|
|
|
|
prt-get isinst wayland-32 || PKGMK_VULKAN_VALIDATION_LAYERS+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
|
2021-09-24 22:57:09 +10:00
|
|
|
cmake -S Vulkan-ValidationLayers-sdk-$version -B build $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}" \
|
|
|
|
-D BUILD_TESTS=OFF \
|
|
|
|
-D BUILD_LAYER_SUPPORT_FILES=ON \
|
2022-02-20 23:06:05 +11:00
|
|
|
-D USE_ROBIN_HOOD_HASHING=ON \
|
2021-09-24 22:57:09 +10:00
|
|
|
-D SPIRV_HEADERS_INSTALL_DIR:PATH="$SRC/Vulkan-ValidationLayers-sdk-$version/headers/external/spirv-headers" \
|
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
|
|
|
|
DESTDIR=$PKG cmake --build build --target install
|
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
|
|
|
}
|