SDL2: enable vulkan support.
This commit is contained in:
parent
1b1d8efe5e
commit
836dcee48a
1 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'SDL2'
|
# Template file for 'SDL2'
|
||||||
pkgname=SDL2
|
pkgname=SDL2
|
||||||
version=2.0.8
|
version=2.0.8
|
||||||
revision=2
|
revision=3
|
||||||
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
|
||||||
|
@ -16,11 +16,11 @@ distfiles="http://www.libsdl.org/release/${pkgname}-${version}.tar.gz"
|
||||||
checksum=edc77c57308661d576e843344d8638e025a7818bff73f8fbfab09c3c5fd092ec
|
checksum=edc77c57308661d576e843344d8638e025a7818bff73f8fbfab09c3c5fd092ec
|
||||||
|
|
||||||
# Package build options
|
# 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
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*|x86_64*)
|
i686*|x86_64*)
|
||||||
build_options_default="opengl pulseaudio x11"
|
build_options_default="opengl pulseaudio x11 vulkan"
|
||||||
;;
|
;;
|
||||||
aarch64*)
|
aarch64*)
|
||||||
build_options_default="gles opengl pulseaudio x11"
|
build_options_default="gles opengl pulseaudio x11"
|
||||||
|
@ -95,6 +95,13 @@ else
|
||||||
configure_args+=" --without-x"
|
configure_args+=" --without-x"
|
||||||
fi
|
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() {
|
SDL2-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="alsa-lib-devel ${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="alsa-lib-devel ${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue