mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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:
parent
53ed11cdfd
commit
a4a2c64196
2 changed files with 11 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue