qemu: add gtk option
This commit is contained in:
parent
b29dfe8ac4
commit
753a78b171
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'qemu'
|
# Template file for 'qemu'
|
||||||
pkgname=qemu
|
pkgname=qemu
|
||||||
version=2.1.0
|
version=2.1.0
|
||||||
revision=3
|
revision=4
|
||||||
short_desc="Open Source Processor Emulator"
|
short_desc="Open Source Processor Emulator"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://qemu.org"
|
homepage="http://qemu.org"
|
||||||
|
@ -19,6 +19,13 @@ makedepends="libpng-devel>=1.6 libjpeg-turbo-devel pixman-devel
|
||||||
depends="libusb>=1.0.15"
|
depends="libusb>=1.0.15"
|
||||||
conf_files="/etc/qemu/target-x86_64.conf"
|
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() {
|
do_configure() {
|
||||||
local args=
|
local args=
|
||||||
|
|
||||||
|
@ -29,10 +36,17 @@ do_configure() {
|
||||||
export PKG_CONFIG=pkg-config
|
export PKG_CONFIG=pkg-config
|
||||||
export LIBTOOL=libtool
|
export LIBTOOL=libtool
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$build_option_gtk" ]; then
|
||||||
|
args+=" --enable-gtk"
|
||||||
|
else
|
||||||
|
args+=" --disable-gtk"
|
||||||
|
fi
|
||||||
|
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec \
|
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec \
|
||||||
--enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen --enable-tpm \
|
--enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen --enable-tpm \
|
||||||
--enable-vhost-net --enable-vnc-png --enable-vnc-tls --enable-virtfs \
|
--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}
|
--enable-pie --localstatedir=/var --with-sdlabi=2.0 ${args}
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
|
|
Loading…
Reference in New Issue