aboutsummaryrefslogtreecommitdiff
path: root/system/qemu-kvm/qemu-kvm.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-02-19 00:37:31 -0600
committerRobby Workman <rworkman@slackbuilds.org>2012-02-20 12:59:56 -0600
commitc5089c05c92de43981d7ae720a034798359d0db8 (patch)
treecdf4dd3268f820bc07cdb4a353b565314098aedd /system/qemu-kvm/qemu-kvm.SlackBuild
parent25eb494eb9ccf9b04d925616d6c32a560ffe7cb4 (diff)
system/qemu-kvm: Enabled (optional) spice support.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/qemu-kvm/qemu-kvm.SlackBuild')
-rw-r--r--system/qemu-kvm/qemu-kvm.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/system/qemu-kvm/qemu-kvm.SlackBuild b/system/qemu-kvm/qemu-kvm.SlackBuild
index b271df276b4c0..8f0990fa07eea 100644
--- a/system/qemu-kvm/qemu-kvm.SlackBuild
+++ b/system/qemu-kvm/qemu-kvm.SlackBuild
@@ -84,6 +84,13 @@ sed -i "s|^CFLAGS=\"-g\ |CFLAGS=\"|" configure
sed -i "s|^LDFLAGS=\"-g\ |LDFLAGS=\"|" configure
sed -i "s|^\ \ CFLAGS=\"-O2\ | CFLAGS=\"|" configure
+# check if spice support is enabled
+if pkg-config --exists spice-server ; then
+ with_spice="--enable-spice"
+else
+ with_spice="--disable-spice"
+fi
+
# The script builds only the 32/64 bit x86 compatible Linux Target CPU emulator.
# If you need to emulate other available architectures you should install the
# "qemu" package, not the "qemu-kvm" package. This package will only be useful
@@ -97,7 +104,8 @@ CFLAGS="$SLKCFLAGS" \
--enable-mixemu \
--audio-drv-list=alsa,oss,sdl,esd \
--enable-system \
- --target-list="x86_64-softmmu"
+ --target-list="x86_64-softmmu" \
+ $with_spice
make V=1 \
OS_CFLAGS="$SLKCFLAGS" \