2015-11-19 23:53:41 +01:00
TERMUX_PKG_HOMEPAGE = http://w3m.sourceforge.net/
TERMUX_PKG_DESCRIPTION = "Text based Web browser and pager"
2019-01-21 15:00:12 +01:00
TERMUX_PKG_LICENSE = "BSD"
2018-01-25 20:48:17 +01:00
local _MAJOR_VERSION = 0.5.3
2019-01-20 22:55:48 +01:00
local _MINOR_VERSION = 20190105
2017-01-11 17:53:33 +01:00
TERMUX_PKG_VERSION = 0.5.3.$_MINOR_VERSION
2019-04-14 14:51:46 +02:00
TERMUX_PKG_REVISION = 1
2019-01-20 22:55:48 +01:00
TERMUX_PKG_SHA256 = 0467bb5429b75749205a3f57b9f5e8abba49929272aeab6fce94ff17953f0784
2017-01-11 17:53:33 +01:00
# The upstream w3m project is dead, but every linux distribution uses
# this maintained fork in debian:
TERMUX_PKG_SRCURL = https://github.com/tats/w3m/archive/v${ _MAJOR_VERSION } +git${ _MINOR_VERSION } .tar.gz
2015-11-19 23:53:41 +01:00
TERMUX_PKG_BUILD_IN_SRC = yes
2019-04-14 14:51:46 +02:00
TERMUX_PKG_DEPENDS = "libgc, ncurses, openssl, zlib"
2016-01-04 12:31:29 +01:00
# ac_cv_func_bcopy=yes to avoid w3m defining it's own bcopy function, which
2017-03-05 23:45:49 +01:00
# breaks 64-bit builds where NDK headers define bcopy as a macro:
2016-01-04 12:31:29 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS = "ac_cv_func_setpgrp_void=yes ac_cv_func_bcopy=yes"
2016-05-12 23:21:01 +02:00
2017-09-13 11:51:29 +02:00
#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.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS += " --with-browser=termux-open-url"
#Overwrite the default editor to just vi, as the default was /usr/bin/vi.
TERMUX_PKG_EXTRA_CONFIGURE_ARGS += " --with-editor=vi"
2017-09-14 20:23:56 +02:00
# Avoid trying to build w3mimg:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS += " --enable-image=no"
2017-09-13 11:51:29 +02:00
2016-05-12 23:21:01 +02:00
# For Makefile.in.patch:
export TERMUX_PKG_BUILDER_DIR