diff options
author | Robby Workman | 2012-02-19 07:38:23 +0100 |
---|---|---|
committer | Robby Workman | 2012-02-20 19:59:55 +0100 |
commit | 5e3879e3e31df6a1f78d6f33cc2210137b6e52fe (patch) | |
tree | 1babe92f99a15c8d679aebadf51514234f1f4be6 /system/qemu | |
parent | 0ea9a9463b1fbdd1fedd4ee64fa297fa489c5ed1 (diff) | |
download | slackbuilds-5e3879e3e31df6a1f78d6f33cc2210137b6e52fe.tar.gz |
system/qemu: Enabled (optional) spice support.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/qemu')
-rw-r--r-- | system/qemu/README | 2 | ||||
-rw-r--r-- | system/qemu/qemu.SlackBuild | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/system/qemu/README b/system/qemu/README index 32d9ebc6e6..1c2c240fc9 100644 --- a/system/qemu/README +++ b/system/qemu/README @@ -13,3 +13,5 @@ compatible processors. NOTE: qemu builds man-pages at compile-time; to do so, /sbin must be in the current $PATH. Be sure to run the script as root ( "su -" ). + +spice is an optional dependency. 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 |