diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template index 8828d23366..042ab2d07f 100644 --- a/srcpkgs/SDL2/template +++ b/srcpkgs/SDL2/template @@ -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