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/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-08-31 00:42:24 +10:00
|
|
|
# Depends on: cmake ninja
|
2019-05-14 23:59:14 +10:00
|
|
|
|
|
|
|
name=spirv-headers
|
2020-10-24 01:52:30 +11:00
|
|
|
version=1.5.3-060627f
|
2020-07-24 01:18:20 +10:00
|
|
|
release=1
|
2020-10-24 01:52:30 +11:00
|
|
|
source=(
|
|
|
|
#https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz
|
|
|
|
https://github.com/KhronosGroup/SPIRV-Headers/archive/060627f0b0d2fa8581b5acb939f46e3b9e500593.zip
|
|
|
|
)
|
2019-05-14 23:59:14 +10:00
|
|
|
|
|
|
|
build() {
|
2020-10-24 01:52:30 +11:00
|
|
|
mv SPIRV-Headers-060627f0b0d2fa8581b5acb939f46e3b9e500593 SPIRV-Headers-$version
|
|
|
|
|
2020-07-24 01:18:20 +10:00
|
|
|
cmake -SSPIRV-Headers-$version -Bbuild -GNinja \
|
2019-05-15 00:14:12 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-08-30 19:06:31 +10:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-06-08 01:03:59 +10:00
|
|
|
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON
|
2019-05-15 00:14:12 +10:00
|
|
|
|
2020-06-07 17:51:31 +10:00
|
|
|
cmake --build build
|
2020-07-08 23:14:57 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-05-14 23:59:14 +10:00
|
|
|
}
|