system/colord-gtk: Update SlackBuild for new options.

Thanks to Chris Willing.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-11-17 17:32:10 +00:00 committed by Willy Sudiarto Raharjo
parent 826423d853
commit 2d76c76340
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 23 additions and 3 deletions

View file

@ -1 +1,9 @@
colord-gtk is the GTK+ support library for colord.
You can use the following options:
VALA=yes enable vala API support, requires vala
(default: disabled, VALA=no)
GTK2=no disable extra GTK+2 support
(default: enabled, GTK2=yes)

View file

@ -29,7 +29,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -69,6 +69,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
GTK2OPT='--enable-gtk2'
if [ "$GTK2" = 'no' ]; then
GTK2OPT=''
fi
VALAOPT=''
if [ "$VALA" = 'yes' ]; then
VALAOPT='--enable-vala'
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -79,6 +89,8 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
$GTK2OPT \
$VALAOPT \
--build=$ARCH-slackware-linux
make