system/colord: Add auto detection for vala.

Requested by Christoph Willing.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-11-14 13:55:05 +07:00
parent 53ed11cdfd
commit a4a2c64196
2 changed files with 11 additions and 3 deletions

View file

@ -12,5 +12,4 @@ BASH_COMPLETION=yes ./colord.SlackBuild
If you want argyllcms support (new dep: argyllcms), use:
ARGYLL=yes ./colord.SlackBuild
Optional dependency: vala
Optional dependency: vala (autodetected)

View file

@ -24,7 +24,7 @@
PRGNAM=colord
VERSION=${VERSION:-1.2.12}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -80,6 +80,14 @@ else
argyll="--disable-argyllcms-sensor"
fi
# Check if VALA exists
vl=`pkg-config --exists vapigen`
if [ "$?" -eq 0 ]; then
vala="--enable-vala"
else
vala=""
fi
set -e
rm -rf $PKG
@ -111,6 +119,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-sane \
--enable-libcolordcompat \
$argyll \
$vala \
--disable-systemd-login \
--with-daemon-user=colord \
--build=$ARCH-slackware-linux \