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

26 lines
770 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/
# 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
version=1.5.4-f027d53
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/f027d53ded7e230e008d37c8b47ede7cd308e19d.zip
2020-10-24 01:52:30 +11:00
)
2019-05-14 23:59:14 +10:00
build() {
mv SPIRV-Headers-f027d53ded7e230e008d37c8b47ede7cd308e19d SPIRV-Headers-$version
2020-10-24 01:52:30 +11:00
2020-07-24 01:18:20 +10:00
cmake -SSPIRV-Headers-$version -Bbuild -GNinja \
-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
}