aboutsummaryrefslogtreecommitdiff
path: root/network/w3m/w3m.SlackBuild
diff options
context:
space:
mode:
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 645e275a53ea1..89ba3934a9b83 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