SDL: enable opengl and pulseaudio options on arm

This commit is contained in:
Michal Vasilek 2022-06-16 19:24:23 +02:00 committed by Echo
parent 0bd789bc83
commit 4b49de992c

View File

@ -1,7 +1,7 @@
# Template file for 'SDL'
pkgname=SDL
version=1.2.15
revision=12
revision=13
build_style=gnu-configure
configure_args="--enable-alsa --enable-sndio --disable-esd --disable-rpath
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
@ -16,20 +16,13 @@ makedepends="alsa-lib-devel sndio-devel $(vopt_if x11 libXrandr-devel)
short_desc="Simple Directmedia Layer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="http://www.libsdl.org/"
distfiles="http://www.libsdl.org/release/SDL-${version}.tar.gz"
homepage="https://www.libsdl.org/"
distfiles="https://www.libsdl.org/release/SDL-${version}.tar.gz"
checksum=d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
# Package build options
build_options="x11 opengl aalib pulseaudio"
build_options_default="x11"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*|ppc*)
# Enable OpenGL and pulseaudio on x86 and ppc.
build_options_default+=" opengl pulseaudio"
;;
esac
build_options_default="x11 opengl pulseaudio"
if [ "$build_option_opengl" ]; then
# libGL.so.1 is dynamically loaded with dlopen.