From 76c20fc57a1b9620011fef4a4633cfcbbae992bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 16 Nov 2019 17:14:23 +0100 Subject: [PATCH] libGL: fix cross build for ppc* from x86_64* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/libGL/template | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libGL/template b/srcpkgs/libGL/template index 7a3e71313a1..23e1aa944fe 100644 --- a/srcpkgs/libGL/template +++ b/srcpkgs/libGL/template @@ -47,8 +47,8 @@ ppc*) # Enable all ppc drivers. configure_args+=" -Dgallium-drivers=r300,r600,radeonsi,swrast,nouveau,virgl" configure_args+=" -Ddri-drivers=r100,r200,nouveau" - configure_args+=" -Dvulkan-drivers=amd" configure_args+=" -Dgallium-xa=false -Ddri3=true -Dgallium-opencl=icd" + configure_args+=" -Dvulkan-drivers=amd" # Explicitly control power8 feature usage, disable on BE case "$XBPS_TARGET_MACHINE" in ppc64le*) configure_args+=" -Dpower8=true";; @@ -103,6 +103,16 @@ case "$XBPS_TARGET_MACHINE" in *) configure_args+=" -Dglx=dri";; esac +post_configure() { + if [ "$CROSS_BUILD" ]; then + find -iname "*.ninja" -exec sed -i "{}" \ + -e "s; /usr/lib/; ${XBPS_CROSS_BASE}/usr/lib/;g" \ + -e "s;-L/usr/lib;-L${XBPS_CROSS_BASE}/usr/lib;g" \ + -e "s;-I/usr/include;-I${XBPS_CROSS_BASE}/usr/include;g" \ + \; + fi +} + post_install() { vlicense docs/license.html vmkdir usr/lib/xorg/modules/extensions