mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
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:
parent
826423d853
commit
2d76c76340
2 changed files with 23 additions and 3 deletions
|
@ -1 +1,9 @@
|
||||||
colord-gtk is the GTK+ support library for colord.
|
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)
|
||||||
|
|
|
@ -29,7 +29,7 @@ TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
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 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-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" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -79,6 +89,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
|
$GTK2OPT \
|
||||||
|
$VALAOPT \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
Loading…
Reference in a new issue