summaryrefslogtreecommitdiff
path: root/office/fbreader/fbreader.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@slackbuilds.org>2011-03-09 21:43:16 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-03-20 14:07:56 -0500
commit0f113124b0c3d9ced334bb6574aa31ba71af3c55 (patch)
tree844c84d1316ca6063ca0c12a4481fd4e569de1a8 /office/fbreader/fbreader.SlackBuild
parent7a1b4848a3d34a263544fadf08178c91c12fbad0 (diff)
downloadslackbuilds-0f113124b0c3d9ced334bb6574aa31ba71af3c55.tar.gz
office/fbreader: Updated for Slackware 13.37
Included a patch for gcc-4.5.x Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'office/fbreader/fbreader.SlackBuild')
-rw-r--r--office/fbreader/fbreader.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/office/fbreader/fbreader.SlackBuild b/office/fbreader/fbreader.SlackBuild
index 68edd53452..a09a60d8a3 100644
--- a/office/fbreader/fbreader.SlackBuild
+++ b/office/fbreader/fbreader.SlackBuild
@@ -3,18 +3,17 @@
# Slackware build script for fbreader
# Originally written by Audrius Kazukauskas <audrius@neutrino.lt>
# Maintained as of version 0.12.1 by Niels Horn <niels.horn@gmail.com>
-# revision date: 2010/06/01
+# revision date: 2011/03/09
PRGNAM=fbreader
VERSION=${VERSION:-0.12.10}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -41,17 +40,13 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
ARCHQUADLET=""
-elif [ "$ARCH" = "arm" ]; then
- SLKCFLAGS="-O2 -march=armv4t"
- LIBDIRSUFFIX=""
- ARCHQUADLET="-gnueabi"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
ARCHQUADLET=""
fi
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -83,6 +78,9 @@ sed -i 's|moc-qt4|moc|' makefiles/arch/desktop.mk
sed -i 's|-I /usr/include/qt4|$(shell pkg-config --cflags QtGui)|' makefiles/arch/desktop.mk
sed -i 's|-lQtGui|$(shell pkg-config --libs QtGui)|' makefiles/arch/desktop.mk
+# Patch source for gcc45x hickup (from the friendly ARCH people)
+patch -p1 < $CWD/fbreader_gcc45x.patch
+
# Use "-j1" to avoid some warnings
make -j1 LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$PKG