w3m: Build with --enable-image=no
[termux-packages] / packages / w3m / build.sh
1 TERMUX_PKG_HOMEPAGE=http://w3m.sourceforge.net/
2 TERMUX_PKG_DESCRIPTION="Text based Web browser and pager"
3 _MAJOR_VERSION=0.5.3
4 _MINOR_VERSION=20170102
5 TERMUX_PKG_VERSION=0.5.3.$_MINOR_VERSION
6 TERMUX_PKG_REVISION=1
7 # The upstream w3m project is dead, but every linux distribution uses
8 # this maintained fork in debian:
9 TERMUX_PKG_SRCURL=https://github.com/tats/w3m/archive/v${_MAJOR_VERSION}+git${_MINOR_VERSION}.tar.gz
10 TERMUX_PKG_SHA256=7eb8cadfa39daa6e8ecf8244847991f614fdc5319e601f58fc02956bc05b5ab1
11 TERMUX_PKG_FOLDERNAME=w3m-${_MAJOR_VERSION}-git${_MINOR_VERSION}
12 TERMUX_PKG_BUILD_IN_SRC=yes
13 TERMUX_PKG_DEPENDS="libgc, ncurses, openssl"
14 # ac_cv_func_bcopy=yes to avoid w3m defining it's own bcopy function, which
15 # breaks 64-bit builds where NDK headers define bcopy as a macro:
16 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_setpgrp_void=yes ac_cv_func_bcopy=yes"
17
18 #Overwrite the default /usr/bin/firefox with termux-open-url as default external browser. That way, pressing "M" on a URL will open a link in Androids default Browser.
19 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-browser=termux-open-url"
20 #Overwrite the default editor to just vi, as the default was /usr/bin/vi.
21 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-editor=vi"
22 # Avoid trying to build w3mimg:
23 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-image=no"
24
25 # For Makefile.in.patch:
26 export TERMUX_PKG_BUILDER_DIR