summaryrefslogtreecommitdiffstats
path: root/system/virt-viewer/virt-viewer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/virt-viewer/virt-viewer.SlackBuild')
-rw-r--r--system/virt-viewer/virt-viewer.SlackBuild17
1 files changed, 15 insertions, 2 deletions
diff --git a/system/virt-viewer/virt-viewer.SlackBuild b/system/virt-viewer/virt-viewer.SlackBuild
index 36bc26703e..38a8246f8b 100644
--- a/system/virt-viewer/virt-viewer.SlackBuild
+++ b/system/virt-viewer/virt-viewer.SlackBuild
@@ -5,7 +5,7 @@
# Written by Zak B. Elep, <zakame@zakame.net>
PRGNAM=virt-viewer
-VERSION=${VERSION:-0.5.5}
+VERSION=${VERSION:-0.5.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,6 +38,17 @@ fi
set -e
+if pkg-config --exists spice-client-gtk-2.0.pc ; then
+ GTKVERS=2.0
+ SPICEGTK="--with-spice-gtk"
+elif pkg-config --exists spice-client-gtk-3.0.pc ; then
+ GTKVERS=3.0
+ SPICEGTK="--with-spice-gtk"
+else
+ GTKVERS=2.0
+ SPICEGTK="--without-spice-gtk"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -57,8 +68,10 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
+ --with-gtk=$GTKVERS \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ $SPICEGTK
make
make install-strip DESTDIR=$PKG