summaryrefslogtreecommitdiff
path: root/network/w3m/w3m.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <jsun@freeshell.org>2010-05-11 22:25:59 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:25:59 +0200
commite44e4192bd2d5b9746bc47ee29825ce5d0a0004c (patch)
tree28f9ba8948b72c9c8b62713b721a4189018df64b /network/w3m/w3m.SlackBuild
parente0efafad9781021a58e75dca89ac2353ea1a2cd7 (diff)
downloadslackbuilds-e44e4192bd2d5b9746bc47ee29825ce5d0a0004c.tar.gz
network/w3m: Updated for version 0.5.2
Diffstat (limited to 'network/w3m/w3m.SlackBuild')
-rw-r--r--network/w3m/w3m.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/network/w3m/w3m.SlackBuild b/network/w3m/w3m.SlackBuild
index 645e275a53..89ba3934a9 100644
--- a/network/w3m/w3m.SlackBuild
+++ b/network/w3m/w3m.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=w3m
VERSION=0.5.2
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -36,13 +38,18 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
+# Fix segfaulting bug
+patch -p1 < $CWD/w3m-0.5.2-gpm_fix-1.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--enable-keymap=lynx \
- --enable-gopher
+ --enable-gopher \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
make DESTDIR=$PKG install