From 753a78b171b4864bb3ea6e40bad3f6292211968a Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Fri, 29 Aug 2014 21:43:28 +0200 Subject: [PATCH] qemu: add gtk option --- srcpkgs/qemu/template | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/srcpkgs/qemu/template b/srcpkgs/qemu/template index 9d5757b31d3..e593ded5d2f 100644 --- a/srcpkgs/qemu/template +++ b/srcpkgs/qemu/template @@ -1,7 +1,7 @@ # Template file for 'qemu' pkgname=qemu version=2.1.0 -revision=3 +revision=4 short_desc="Open Source Processor Emulator" maintainer="Juan RP " homepage="http://qemu.org" @@ -19,6 +19,13 @@ makedepends="libpng-devel>=1.6 libjpeg-turbo-devel pixman-devel depends="libusb>=1.0.15" conf_files="/etc/qemu/target-x86_64.conf" +build_options="gtk" +desc_option_gtk="Enable GTK display and use it by default" + +if [ "$build_option_gtk" ]; then + makedepends+=" gtk+-devel" +fi + do_configure() { local args= @@ -29,10 +36,17 @@ do_configure() { export PKG_CONFIG=pkg-config export LIBTOOL=libtool fi + + if [ "$build_option_gtk" ]; then + args+=" --enable-gtk" + else + args+=" --disable-gtk" + fi + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec \ --enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen --enable-tpm \ --enable-vhost-net --enable-vnc-png --enable-vnc-tls --enable-virtfs \ - --disable-gtk --enable-libusb --disable-glusterfs \ + --enable-libusb --disable-glusterfs \ --enable-pie --localstatedir=/var --with-sdlabi=2.0 ${args} } do_build() {