diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template index 232f7d02b7..258a87a451 100644 --- a/srcpkgs/SDL2/template +++ b/srcpkgs/SDL2/template @@ -1,7 +1,7 @@ # Template file for 'SDL2' pkgname=SDL2 -version=2.0.3 -revision=7 +version=2.0.4 +revision=1 build_style=gnu-configure configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev --enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared @@ -12,15 +12,14 @@ short_desc="Simple DirectMedia Layer (version 2)" maintainer="Juan RP " homepage="http://www.libsdl.org/" license="zlib" -distfiles="http://www.libsdl.org/release/${pkgname}-$version.tar.gz" -checksum=a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c +distfiles="http://www.libsdl.org/tmp/release/${pkgname}-$version.tar.gz" +checksum=26c6aea8e1c7c60f4bed11d9b39630a878576a09a722ea67755b4fb7a0694af7 # Package build options -build_options="gles opengl pulseaudio wayland x11" +build_options="gles opengl pulseaudio sndio wayland x11" case "$XBPS_TARGET_MACHINE" in i686*|x86_64*) - # Enable OpenGL, pulseaudio and x11 build_options_default="opengl pulseaudio x11" ;; arm*) @@ -66,6 +65,13 @@ else configure_args+=" --disable-pulseaudio" fi +if [ "$build_option_sndio" ]; then + configure_args+=" --enable-sndio" + makedepends+=" sndio-devel" +else + configure_args+=" --disable-sndio" +fi + if [ "$build_option_wayland" ]; then if [ "$build_option_opengl" ]; then msg_error "$pkgname: wayland option requires gles and not opengl.\n"