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
|
2022-05-22 20:31:14 +10:00
|
|
|
_name=Vulkan-Loader-sdk
|
2023-06-04 00:22:04 +02:00
|
|
|
version=1.3.250.0
|
2022-05-22 20:31:14 +10:00
|
|
|
_version=sdk-$version
|
2021-04-22 20:51:24 +10:00
|
|
|
release=1
|
2022-05-22 20:31:14 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/$_version/$_name-$version.tar.gz)
|
2019-04-28 13:06:20 +10:00
|
|
|
|
|
|
|
build() {
|
2021-04-05 15:24:34 +10:00
|
|
|
prt-get isinst wayland || PKGMK_VULKAN_LOADER+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
|
2022-10-31 10:30:53 +00:00
|
|
|
cmake -S $_name-$version -B build -G Ninja $PKGMK_VULKAN_LOADER \
|
2021-04-05 15:24:34 +10:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2022-05-22 20:31:14 +10:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS} -ffat-lto-objects" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS} -ffat-lto-objects" \
|
2021-04-05 15:24:34 +10:00
|
|
|
-D CMAKE_SKIP_RPATH=ON \
|
|
|
|
-D BUILD_TESTS=OFF
|
2019-04-28 13:06:20 +10:00
|
|
|
|
2020-06-07 18:00:40 +10:00
|
|
|
cmake --build build
|
2020-07-08 23:14:57 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-04-28 13:06:20 +10:00
|
|
|
}
|