27 lines
835 B
Plaintext
27 lines
835 B
Plaintext
# Description: Vulkan ICD desktop loader
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: vulkan-headers xorg-libxrandr
|
|
|
|
name=vulkan-loader
|
|
version=1.2.179
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/Vulkan-Loader/archive/v$version/Vulkan-Loader-$version.tar.gz)
|
|
|
|
build() {
|
|
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
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|