spirv-tools: enable host build

spirv-tools is used by spirv-llvm-translator and thus by llvm
in addition to its prior use by vulkan/glslang. this is necessary
for iris graphics in mesa-24.1.0

Co-authored-by: CvH <1355173+CvH@users.noreply.github.com>
This commit is contained in:
Rudi Heitbaum 2024-05-24 13:41:38 +00:00
parent 336d703400
commit d4d88e6ebe

View File

@ -11,6 +11,13 @@ PKG_SHA256="c0d01e758a543b3a358cb97af02c6817ebd3f5ff13a2edf9fb220646a3d67999"
PKG_LICENSE="Apache-2.0"
PKG_SITE="https://github.com/KhronosGroup/SPIRV-Tools"
PKG_URL="https://github.com/KhronosGroup/SPIRV-Tools/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_HOST=""
PKG_DEPENDS_HOST="toolchain:host"
PKG_DEPENDS_UNPACK="spirv-headers"
PKG_LONGDESC="The SPIR-V Tools project provides an API and commands for processing SPIR-V modules."
PKG_TOOLCHAIN="manual"
post_unpack() {
mkdir -p ${PKG_BUILD}/external/spirv-headers
tar --strip-components=1 \
-xf "${SOURCES}/spirv-headers/spirv-headers-$(get_pkg_version spirv-headers).tar.gz" \
-C "${PKG_BUILD}/external/spirv-headers"
}