SDL2: enable vulkan support.

This commit is contained in:
maxice8 2018-08-06 02:27:10 -03:00 committed by Enno Boland
parent 1b1d8efe5e
commit 836dcee48a

View file

@ -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}"