From 36c8cc5d940a52e332ca3d8acb84aebad28ba957 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 4 Aug 2018 18:28:11 -0300 Subject: [PATCH] Vulkan-Tools: fix cross --- srcpkgs/Vulkan-Tools/template | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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