qemu: added opengl and virgl build opts; on by default.

This commit is contained in:
Juan RP 2016-05-12 18:10:40 +02:00
parent f581ff2506
commit 7172e48fe2
1 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'qemu'
pkgname=qemu
version=2.6.0
revision=1
revision=2
short_desc="Open Source Processor Emulator"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://qemu.org"
@ -17,14 +17,16 @@ makedepends="libpng-devel libjpeg-turbo-devel pixman-devel snappy-devel
libcurl-devel xfsprogs-devel libcap-ng-devel libcap-devel vde2-devel usbredir-devel
libbluetooth-devel libssh2-devel libusb-devel pulseaudio-devel libnfs-devel
$(vopt_if sdl SDL-devel) $(vopt_if sdl2 SDL2-devel) $(vopt_if gtk gtk+-devel)
$(vopt_if spice spice-devel)"
$(vopt_if spice spice-devel) $(vopt_if virgl virglrenderer-devel)
$(vopt_if opengl 'libepoxy-devel libdrm-devel MesaLib-devel')"
build_options="gtk sdl sdl2 spice"
build_options_default="sdl"
build_options="gtk opengl sdl sdl2 spice virgl"
build_options_default="opengl sdl virgl"
desc_option_gtk="Enable GTK display and use it by default"
desc_option_sdl="Use SDL (1.x) video output"
desc_option_sdl2="Use SDL (2.x) video output"
desc_option_spice="Enable support for SPICE"
desc_option_virgl="Enable support for VirGL (A Virtual 3D GPU renderer)"
vopt_conflict "sdl" "sdl2"
case "$XBPS_TARGET_MACHINE" in
@ -45,7 +47,8 @@ do_configure() {
--enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen --enable-tpm \
--enable-vhost-net --enable-vnc-png --enable-virtfs \
--enable-libusb --disable-glusterfs --enable-snappy --enable-usb-redir \
--enable-pie --localstatedir=/var $(vopt_enable spice) \
--enable-pie --localstatedir=/var \
$(vopt_enable virgl virglrenderer) $(vopt_enable opengl) $(vopt_enable spice) \
$(vopt_if sdl "--with-sdlabi=1.2") \
$(vopt_if sdl2 "--with-sdlabi=2.0") \
$(vopt_enable gtk) ${args}