diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template index d7fbe33bd63..e5d38af1a7b 100644 --- a/srcpkgs/SDL2/template +++ b/srcpkgs/SDL2/template @@ -1,7 +1,7 @@ # Template file for 'SDL2' pkgname=SDL2 version=2.0.8 -revision=2 +revision=3 build_style=gnu-configure configure_args="--enable-alsa --disable-esd --disable-rpath --enable-libudev --enable-clock_gettime --disable-nas --disable-arts --disable-x11-shared @@ -16,11 +16,11 @@ distfiles="http://www.libsdl.org/release/${pkgname}-${version}.tar.gz" checksum=edc77c57308661d576e843344d8638e025a7818bff73f8fbfab09c3c5fd092ec # Package build options -build_options="gles opengl pulseaudio sndio wayland x11" +build_options="gles opengl pulseaudio sndio wayland x11 vulkan" case "$XBPS_TARGET_MACHINE" in i686*|x86_64*) - build_options_default="opengl pulseaudio x11" + build_options_default="opengl pulseaudio x11 vulkan" ;; aarch64*) build_options_default="gles opengl pulseaudio x11" @@ -95,6 +95,13 @@ else configure_args+=" --without-x" fi +if [ "$build_option_vulkan" ]; then + configure_args+=" --enable-video-vulkan" + makedepends+=" Vulkan-Headers vulkan-loader" +else + configure_args+=" --disable-video-vulkan" +fi + SDL2-devel_package() { short_desc+=" - development files" depends="alsa-lib-devel ${makedepends} ${sourcepkg}>=${version}_${revision}"