2019-04-28 13:07:24 +10:00
|
|
|
# Description: Vulkan tools
|
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: glslang vulkan-loader
|
2020-10-24 01:57:22 +11:00
|
|
|
# Optional: wayland
|
2019-04-28 13:07:24 +10:00
|
|
|
|
|
|
|
name=vulkan-tools
|
2021-02-28 00:25:45 +11:00
|
|
|
version=1.2.162.0
|
2020-06-07 18:00:50 +10:00
|
|
|
release=1
|
2020-10-24 01:57:22 +11:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-$version/Vulkan-Tools-sdk-$version.tar.gz)
|
2019-04-28 13:07:24 +10:00
|
|
|
|
|
|
|
build() {
|
2020-10-24 01:57:22 +11:00
|
|
|
cmake -SVulkan-Tools-sdk-$version -Bbuild -GNinja \
|
2019-04-28 13:07:24 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DGLSLANG_INSTALL_DIR=/usr \
|
2019-08-30 19:10:49 +10:00
|
|
|
-DBUILD_CUBE=True \
|
|
|
|
-DBUILD_VULKANINFO=True \
|
|
|
|
-DCUBE_WSI_SELECTION='XCB' \
|
|
|
|
-DBUILD_WSI_XCB_SUPPORT=True \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=True \
|
2020-06-07 18:00:50 +10:00
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT="$(prt-get isinst wayland &> /dev/null && echo ON || echo OFF)" \
|
2020-10-24 01:57:22 +11:00
|
|
|
-DBUILD_ICD=OFF \
|
|
|
|
-Wno-dev
|
2019-04-28 13:07:24 +10:00
|
|
|
|
2020-06-07 18:00:50 +10:00
|
|
|
cmake --build build
|
2020-07-08 23:14:57 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-04-28 13:07:24 +10:00
|
|
|
}
|