mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-04 03:42:56 +02:00
SDL2: update to 2.0.4.
This commit is contained in:
parent
9c0195b5a6
commit
362334c90d
1 changed files with 12 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'SDL2'
|
# Template file for 'SDL2'
|
||||||
pkgname=SDL2
|
pkgname=SDL2
|
||||||
version=2.0.3
|
version=2.0.4
|
||||||
revision=7
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev
|
configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev
|
||||||
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
|
--enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared
|
||||||
|
@ -12,15 +12,14 @@ short_desc="Simple DirectMedia Layer (version 2)"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.libsdl.org/"
|
homepage="http://www.libsdl.org/"
|
||||||
license="zlib"
|
license="zlib"
|
||||||
distfiles="http://www.libsdl.org/release/${pkgname}-$version.tar.gz"
|
distfiles="http://www.libsdl.org/tmp/release/${pkgname}-$version.tar.gz"
|
||||||
checksum=a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c
|
checksum=26c6aea8e1c7c60f4bed11d9b39630a878576a09a722ea67755b4fb7a0694af7
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gles opengl pulseaudio wayland x11"
|
build_options="gles opengl pulseaudio sndio wayland x11"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*|x86_64*)
|
i686*|x86_64*)
|
||||||
# Enable OpenGL, pulseaudio and x11
|
|
||||||
build_options_default="opengl pulseaudio x11"
|
build_options_default="opengl pulseaudio x11"
|
||||||
;;
|
;;
|
||||||
arm*)
|
arm*)
|
||||||
|
@ -66,6 +65,13 @@ else
|
||||||
configure_args+=" --disable-pulseaudio"
|
configure_args+=" --disable-pulseaudio"
|
||||||
fi
|
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_wayland" ]; then
|
||||||
if [ "$build_option_opengl" ]; then
|
if [ "$build_option_opengl" ]; then
|
||||||
msg_error "$pkgname: wayland option requires gles and not opengl.\n"
|
msg_error "$pkgname: wayland option requires gles and not opengl.\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue