SDL2: properly enable features on ppc64 targets

[ci skip]
This commit is contained in:
q66 2018-12-13 20:01:27 +01:00 committed by Helmut Pozimski
parent 4619f996ae
commit c730f6bfff
1 changed files with 7 additions and 1 deletions

View File

@ -20,7 +20,7 @@ checksum=255186dc676ecd0c1dbf10ec8a2cc5d6869b5079d8a38194c2aecdff54b324b1
build_options="gles opengl pulseaudio sndio wayland x11 vulkan"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
i686*|x86_64*|ppc64*)
build_options_default="opengl pulseaudio x11 vulkan"
;;
aarch64*)
@ -32,6 +32,12 @@ case "$XBPS_TARGET_MACHINE" in
;;
esac
# SDL_cpuinfo includes altivec.h, which breaks C++ programs with vector keyword
case "$XBPS_TARGET_MACHINE" in
ppc64*) configure_args+=" --disable-altivec";;
*) ;;
esac
if [ "$build_option_gles" ]; then
configure_args+=" --enable-video-opengles"
case "$XBPS_TARGET_MACHINE" in