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-08-31 00:42:24 +10:00
|
|
|
# Depends on: cmake ninja
|
2019-05-14 23:59:14 +10:00
|
|
|
|
|
|
|
name=spirv-headers
|
2019-08-30 19:06:31 +10:00
|
|
|
version=1.4.2
|
2019-10-12 13:35:26 +11:00
|
|
|
commit=e4322e3be589e1ddd44afb20ea842a977c1319b8
|
|
|
|
release=2
|
2019-08-30 19:06:31 +10:00
|
|
|
source=(
|
|
|
|
#https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz
|
|
|
|
https://codeload.github.com/KhronosGroup/SPIRV-Headers/zip/$commit
|
|
|
|
)
|
2019-05-14 23:59:14 +10:00
|
|
|
|
|
|
|
build() {
|
2019-08-30 19:06:31 +10:00
|
|
|
mv $commit SPIRV-Headers-$commit.zip
|
|
|
|
bsdtar -xf SPIRV-Headers-$commit.zip
|
|
|
|
|
|
|
|
# cd SPIRV-Headers-$version
|
|
|
|
cd SPIRV-Headers-$commit
|
2019-05-15 00:14:12 +10:00
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-08-30 19:06:31 +10:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2019-08-31 00:42:24 +10:00
|
|
|
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON \
|
|
|
|
-GNinja
|
2019-05-15 00:14:12 +10:00
|
|
|
|
2019-08-31 00:42:24 +10:00
|
|
|
ninja -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja install
|
2019-05-14 23:59:14 +10:00
|
|
|
}
|