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
|
2021-04-05 15:24:34 +10:00
|
|
|
version=1.2.174
|
2020-06-07 18:00:40 +10:00
|
|
|
release=1
|
2021-04-05 15:24:34 +10:00
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/v$version/Vulkan-Loader-$version.tar.gz)
|
2019-04-28 13:06:20 +10:00
|
|
|
|
|
|
|
build() {
|
2021-04-05 15:24:34 +10:00
|
|
|
prt-get isinst ninja && PKGMK_VULKAN_LOADER+=' -G Ninja'
|
|
|
|
prt-get isinst wayland || PKGMK_VULKAN_LOADER+=' -D BUILD_WSI_WAYLAND_SUPPORT=OFF'
|
|
|
|
|
|
|
|
cmake -S Vulkan-Loader-$version -B build $PKGMK_VULKAN_LOADER \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="${CXXFLAGS}" \
|
|
|
|
-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
|
|
|
}
|