summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@sekurity.com>2010-05-11 22:23:57 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:23:57 +0200
commitd091b79e5d1f1dd7eec6fbb2f29d22981c1efd10 (patch)
tree451d75a0420d91adc0739d9deb547d8c8bafcfbb
parent6ebb07472961cfc21d27d9421ce7cb32a3d7bd98 (diff)
downloadslackbuilds-d091b79e5d1f1dd7eec6fbb2f29d22981c1efd10.tar.gz
libraries/libgnomeprint: Updated for version 2.18.0
-rw-r--r--libraries/libgnomeprint/libgnomeprint.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/libraries/libgnomeprint/libgnomeprint.SlackBuild b/libraries/libgnomeprint/libgnomeprint.SlackBuild
index 4f053438ba..84ee369c4f 100644
--- a/libraries/libgnomeprint/libgnomeprint.SlackBuild
+++ b/libraries/libgnomeprint/libgnomeprint.SlackBuild
@@ -29,6 +29,7 @@ VERSION=2.18.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -36,8 +37,10 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "s390" ]; then
+ SLKCFLAGS="-O2"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
@@ -47,7 +50,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -56,6 +63,8 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-static=no \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux \
|| exit 1
make || exit 1