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 68bd02cb62
commit c01d7fc3c3

View File

@ -11,6 +11,13 @@ PKG_SHA256="03ee1a2c06f3b61008478f4abe9423454e53e580b9488b47c8071547c6a9db47"
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"
}