aboutsummaryrefslogtreecommitdiff
path: root/network/spice-gtk/spice-gtk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/spice-gtk/spice-gtk.SlackBuild')
-rw-r--r--network/spice-gtk/spice-gtk.SlackBuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/network/spice-gtk/spice-gtk.SlackBuild b/network/spice-gtk/spice-gtk.SlackBuild
index 97a696fd18390..ade0e78be3ff4 100644
--- a/network/spice-gtk/spice-gtk.SlackBuild
+++ b/network/spice-gtk/spice-gtk.SlackBuild
@@ -4,7 +4,7 @@
# Written by Matteo Bernardini <ponce@slackbuilds.org>
PRGNAM=spice-gtk
-VERSION=${VERSION:-0.7}
+VERSION=${VERSION:-0.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,10 +35,18 @@ else
LIBDIRSUFFIX=""
fi
-if [ "${VALA:-no}" = "no" ]; then
+# check if vala is there
+if pkg-config --exists libvala-0.18 ; then
+ with_vala="--enable-vala"
+else
with_vala=""
+fi
+
+# check if libcacard is there
+if pkg-config --exists libcacard ; then
+ with_cacard="--enable-smartcard"
else
- with_vala="--enable-vala"
+ with_cacard=""
fi
DOCS="AUTHORS COPYING NEWS README THANKS TODO"
@@ -76,7 +84,7 @@ CXXFLAGS="$SLKCFLAGS" \
$with_vala \
--with-gtk=2.0 \
--with-audio=gstreamer \
- --disable-smartcard \
+ $with_cacard \
--build=$ARCH-slackware-linux
make