aboutsummaryrefslogtreecommitdiff
path: root/network/w3m/w3m.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2018-01-04 19:53:35 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-06 06:41:43 +0700
commit455ffa814bf270ed76854682cd17478c3b0d7c7f (patch)
tree87bde5553765834a00606a92203bc78e409a38da /network/w3m/w3m.SlackBuild
parentf563de6ae73d60cae0eedc15cb7ff3d3c970ffe2 (diff)
network/w3m: Updated for version git20170104 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/w3m/w3m.SlackBuild')
-rw-r--r--network/w3m/w3m.SlackBuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/network/w3m/w3m.SlackBuild b/network/w3m/w3m.SlackBuild
index 9dcb7e96b239b..c6175eed32d06 100644
--- a/network/w3m/w3m.SlackBuild
+++ b/network/w3m/w3m.SlackBuild
@@ -19,14 +19,16 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Now maintained by David Woodfall <dave@dawoodfall.net>
+
PRGNAM=w3m
-VERSION=${VERSION:-0.5.3}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-git20170104}
+BUILD=${BUILD:-1}
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
@@ -37,8 +39,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"
@@ -51,7 +53,7 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="ChangeLog NEWS doc/*"
+DOCS="ChangeLog NEWS doc* ABOUT-NLS README TODO"
set -e
@@ -68,14 +70,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Thanks go to gentoo for these patches
-for i in $CWD/patches/* ; do patch -p1 < $i ; done
+[ -n "$NOMOUSE" ] && mouse="--disable-mouse"
+[ -n "$NOMAILER" ] && mailer="--disable-w3mmailer"
+[ -n "$GUIBROWSER" ] && browser="--with-browser=$GUIBROWSER"
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/libexec \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -83,8 +87,11 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-image=x11,fb \
--enable-keymap=w3m \
--enable-gopher \
- --with-imagelib=imlib2 \
- --with-termlib=ncurses \
+ --with-imagelib="gtk2 gdk-pixbuf imlib2" \
+ --with-termlib="terminfo ncurses" \
+ $mouse \
+ $mailer \
+ $browser \
--build=$ARCH-slackware-linux
make