system/qemu: Enabled (optional) spice support.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2012-02-19 00:38:23 -06:00
parent 0ea9a9463b
commit 5e3879e3e3
2 changed files with 11 additions and 1 deletions

View file

@ -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.

View file

@ -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