From 5e3879e3e31df6a1f78d6f33cc2210137b6e52fe Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 19 Feb 2012 00:38:23 -0600 Subject: system/qemu: Enabled (optional) spice support. Signed-off-by: Robby Workman --- system/qemu/qemu.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'system/qemu/qemu.SlackBuild') diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild index 7fb4149797..34eaa900ff 100644 --- a/system/qemu/qemu.SlackBuild +++ b/system/qemu/qemu.SlackBuild @@ -76,6 +76,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 + # --libdir isn't recognized and isn't needed anyway CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -83,7 +90,8 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --enable-system \ --sysconfdir=/etc \ - --audio-drv-list=alsa,oss,sdl,esd + --audio-drv-list=alsa,oss,sdl,esd \ + $with_spice make OS_CFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG -- cgit v1.2.3