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