2019-11-23 18:50:08 +11:00
|
|
|
# Description: Vulkan ICD desktop loader
|
2019-04-28 13:06:20 +10:00
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-05-05 21:45:25 +10:00
|
|
|
# Depends on: vulkan-headers xorg-libxrandr
|
2019-04-28 13:06:20 +10:00
|
|
|
|
|
|
|
name=vulkan-loader
|
2020-06-07 18:00:40 +10:00
|
|
|
version=1.2.135.0
|
|
|
|
release=1
|
2019-04-28 13:06:20 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-$version/Vulkan-Loader-sdk-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2020-06-07 18:00:40 +10:00
|
|
|
cmake -SVulkan-Loader-sdk-$version -Bbuild -GNinja \
|
2019-04-28 13:06:20 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2019-08-30 19:10:06 +10:00
|
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
|
|
-DBUILD_TESTS=False \
|
|
|
|
-DBUILD_LOADER=True \
|
|
|
|
-DBUILD_WSI_XCB_SUPPORT=True \
|
|
|
|
-DBUILD_WSI_XLIB_SUPPORT=True \
|
2020-06-07 18:00:40 +10:00
|
|
|
-DBUILD_WSI_WAYLAND_SUPPORT="$(prt-get isinst wayland &> /dev/null && echo ON || echo OFF)"
|
2019-04-28 13:06:20 +10:00
|
|
|
|
2020-06-07 18:00:40 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --build build --target install
|
2019-04-28 13:06:20 +10:00
|
|
|
}
|