1
0
forked from ports/opt
opt/spirv-headers/Pkgfile

23 lines
686 B
Plaintext
Raw Normal View History

2019-11-23 18:16:07 +11:00
# Description: Header files from the SPIR-V registry
2019-05-14 23:59:14 +10:00
# URL: https://www.khronos.org/registry/spir-v/
2023-08-18 17:07:41 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: cmake
2019-05-14 23:59:14 +10:00
name=spirv-headers
2024-01-21 10:37:36 +01:00
version=1.3.275.0
2020-07-24 01:18:20 +10:00
release=1
2023-11-11 19:29:47 +01:00
source=(https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-$version/SPIRV-Headers-vulkan-sdk-$version.tar.gz)
2019-05-14 23:59:14 +10:00
build() {
prt-get isinst ninja && PKGMK_SPIRV_HEADERS+=' -G Ninja'
2020-10-24 01:52:30 +11:00
2023-11-11 19:29:47 +01:00
cmake -S SPIRV-Headers-vulkan-sdk-$version -B build $PKGMK_SPIRV_HEADERS \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-08-30 19:06:31 +10:00
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON
cmake --build build
2020-07-08 23:14:57 +10:00
DESTDIR=$PKG cmake --install build
2019-05-14 23:59:14 +10:00
}