2019-08-30 19:08:58 +10:00
|
|
|
# Description: Vulkan Header files and API registry
|
2019-04-28 13:05:46 +10:00
|
|
|
# URL: https://www.khronos.org/vulkan/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-04-05 15:23:04 +10:00
|
|
|
# Depends on: cmake
|
2019-04-28 13:05:46 +10:00
|
|
|
|
|
|
|
name=vulkan-headers
|
2021-04-14 18:40:15 +10:00
|
|
|
version=1.2.175
|
2021-04-17 17:30:56 +10:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/KhronosGroup/Vulkan-Headers/archive/v$version/$name-v$version.tar.gz
|
|
|
|
0001-Omitted-static-vk_video-headers-in-the-1.2.175-updat.patch
|
|
|
|
0002-Add-vk_video-headers-to-CMake-install-target.patch)
|
2019-04-28 13:05:46 +10:00
|
|
|
|
|
|
|
build() {
|
2021-04-17 17:30:56 +10:00
|
|
|
# fix building error with vulkan-icd-loader-1.2.174
|
|
|
|
patch -d Vulkan-Headers-$version -p1 -i $SRC/0001-Omitted-static-vk_video-headers-in-the-1.2.175-updat.patch
|
|
|
|
patch -d Vulkan-Headers-$version -p1 -i $SRC/0002-Add-vk_video-headers-to-CMake-install-target.patch
|
|
|
|
|
2021-04-05 15:23:04 +10:00
|
|
|
cmake -S Vulkan-Headers-$version -B build \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release
|
2019-04-28 13:05:46 +10:00
|
|
|
|
2020-06-07 18:00:11 +10:00
|
|
|
cmake --build build
|
2020-07-08 23:14:57 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-04-28 13:05:46 +10:00
|
|
|
}
|