summaryrefslogtreecommitdiff
path: root/multimedia/telepathy-glib/telepathy-glib.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/telepathy-glib/telepathy-glib.SlackBuild')
-rw-r--r--multimedia/telepathy-glib/telepathy-glib.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/multimedia/telepathy-glib/telepathy-glib.SlackBuild b/multimedia/telepathy-glib/telepathy-glib.SlackBuild
index d411fda3b1..fb376273a9 100644
--- a/multimedia/telepathy-glib/telepathy-glib.SlackBuild
+++ b/multimedia/telepathy-glib/telepathy-glib.SlackBuild
@@ -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,9 @@ 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 {} \;
+# Check for vala
+pkg-config --exists vapigen && VALA="yes"
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -76,8 +79,8 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
- --enable-introspection=yes \
- --enable-vala-bindings=no \
+ --enable-introspection="yes" \
+ --enable-vala-bindings=${VALA:-"no"} \
--disable-schemas-compile \
--build=$ARCH-slackware-linux