1
0
forked from ports/opt

30 lines
696 B
Plaintext
Raw Normal View History

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
# Depends on: cmake ninja
2019-04-28 13:05:46 +10:00
name=vulkan-headers
2019-11-23 18:49:04 +11:00
version=1.1.126.0
2019-04-28 13:05:46 +10:00
release=1
2019-11-23 18:49:04 +11:00
source=(
#https://github.com/KhronosGroup/Vulkan-Headers/archive/v$version/ulkan-Headers-v$version.tar.gz
https://github.com/KhronosGroup/Vulkan-Headers/archive/sdk-$version/Vulkan-Headers-sdk-$version.tar.gz
2019-10-12 13:36:52 +11:00
)
2019-04-28 13:05:46 +10:00
build() {
2019-11-23 18:49:04 +11:00
#cd Vulkan-Headers-$version
cd Vulkan-Headers-sdk-$version
2019-04-28 13:05:46 +10:00
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-08-30 19:08:58 +10:00
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-GNinja
2019-04-28 13:05:46 +10:00
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
2019-04-28 13:05:46 +10:00
}