libGL: fix cross build for ppc* from x86_64*
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
83784632d9
commit
76c20fc57a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue