libGL: add proper support for ppc64 targets

This adds support for nvidia/amd drivers as well as others into
the ppc64 build of mesa.
This commit is contained in:
q66 2018-12-13 19:58:00 +01:00 committed by Helmut Pozimski
parent 4ab6862074
commit 21742f1400

View file

@ -39,6 +39,15 @@ i686*|x86_64*)
subpackages+=" libxatracker mesa-ati-dri mesa-intel-dri mesa-nouveau-dri"
subpackages+=" mesa-vmwgfx-dri mesa-opencl"
;;
ppc64*)
# No OpenCL and a bunch of other things but otherwise complete
configure_args+=" -Dgallium-drivers=r300,r600,radeonsi,swrast,nouveau,virgl"
configure_args+=" -Ddri-drivers=r100,r200,nouveau"
configure_args+=" -Dgallium-xa=true -Ddri3=true"
configure_args+=" -Dvulkan-drivers=amd"
hostmakedepends+=" clang"
subpackages+=" libxatracker mesa-ati-dri mesa-nouveau-dri"
;;
aarch64*)
configure_args+=" -Dgallium-drivers=nouveau,tegra,swrast,vc4"
configure_args+=" -Dvulkan-drivers= -Ddri-drivers="
@ -133,7 +142,7 @@ MesaLib-devel_package() {
libOSMesa>=${version}_${revision} libgbm>=${version}_${revision}
libGLES>=${version}_${revision}"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*) depends+=" libxatracker>=${version}_${revision}";;
i686*|x86_64*|ppc64*) depends+=" libxatracker>=${version}_${revision}";;
esac
short_desc+=" - development files"
pkg_install() {
@ -158,11 +167,16 @@ mesa-ati-dri_package() {
vmove "usr/lib/vdpau/libvdpau_radeon*.so*"
vmove "usr/lib/xorg/modules/drivers/radeon*"
vmove "usr/lib/xorg/modules/drivers/r[236]00*"
vmove "usr/lib/gallium-pipe/pipe_r[36]00.so"
vmove usr/lib/gallium-pipe/pipe_radeonsi.so
vmove usr/lib/dri/r*
vmove "usr/share/vulkan/icd.d/radeon_icd*.json"
vmove "usr/lib/libvulkan_radeon.so"
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
*)
vmove "usr/lib/gallium-pipe/pipe_r[36]00.so"
vmove usr/lib/gallium-pipe/pipe_radeonsi.so
;;
esac
}
}
@ -183,7 +197,7 @@ mesa-nouveau-dri_package() {
vmove "usr/lib/xorg/modules/drivers/nouveau*"
vmove "usr/lib/dri/nouveau*"
case "$XBPS_TARGET_MACHINE" in
aarch64*) ;;
aarch64*|ppc64*) ;;
*) vmove usr/lib/gallium-pipe/pipe_nouveau.so ;;
esac
}