diff --git a/srcpkgs/Vulkan-Tools/template b/srcpkgs/Vulkan-Tools/template index 4b54b6c7d66..9590acf2b9b 100644 --- a/srcpkgs/Vulkan-Tools/template +++ b/srcpkgs/Vulkan-Tools/template @@ -4,7 +4,8 @@ version=1.1.77.0 revision=1 wrksrc="${pkgname}-sdk-${version}" build_style=cmake -configure_args="-DGLSLANG_INSTALL_DIR=/usr" +configure_args="-DGLSLANG_INSTALL_DIR=/usr + -DVULKAN_HEADERS_INSTALL_DIR=${XBPS_CROSS_BASE}/usr" hostmakedepends="python3 pkg-config glslang" makedepends="Vulkan-Headers vulkan-loader libxcb-devel libxkbcommon-devel wayland-devel libwayland-egl libXrandr-devel" @@ -14,4 +15,10 @@ license="Apache-2.0" homepage="https://www.khronos.org/vulkan/" distfiles="https://github.com/KhronosGroup/${pkgname}/archive/sdk-${version}.tar.gz" checksum=15eaefa9d9370c58aac3458b3cb67909759fb4e965d737a57e7de6cc108fabc6 -nocross="refurses to compile if not on the same arch" + +if [ "$CROSS_BUILD" ]; then + # CMake Error at cube/CMakeLists.txt:188 (if): + # if given arguments: + # "STREQUAL" "x86_64" + configure_args+=" -DBUILD_CUBE=OFF" +fi