2019-05-14 23:59:14 +10:00
|
|
|
# Description: SPIR-V Headers
|
|
|
|
# URL: https://www.khronos.org/registry/spir-v/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-05-15 00:14:12 +10:00
|
|
|
# Depends on: cmake
|
2019-05-14 23:59:14 +10:00
|
|
|
|
|
|
|
name=spirv-headers
|
2019-05-15 00:14:12 +10:00
|
|
|
version=1.4.1
|
2019-05-14 23:59:14 +10:00
|
|
|
release=1
|
2019-05-15 00:14:12 +10:00
|
|
|
source=(https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz)
|
2019-05-14 23:59:14 +10:00
|
|
|
|
|
|
|
build() {
|
2019-05-15 00:14:12 +10:00
|
|
|
cd SPIRV-Headers-$version
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2019-05-14 23:59:14 +10:00
|
|
|
}
|