c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
27 lines
1.3 KiB
Bash
27 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=http://w3m.sourceforge.net/
|
|
TERMUX_PKG_DESCRIPTION="Text based Web browser and pager"
|
|
TERMUX_PKG_LICENSE="BSD"
|
|
local _MAJOR_VERSION=0.5.3
|
|
local _MINOR_VERSION=20190105
|
|
TERMUX_PKG_VERSION=0.5.3.$_MINOR_VERSION
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SHA256=0467bb5429b75749205a3f57b9f5e8abba49929272aeab6fce94ff17953f0784
|
|
# 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
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_DEPENDS="libgc, ncurses, openssl, zlib"
|
|
# ac_cv_func_bcopy=yes to avoid w3m defining it's own bcopy function, which
|
|
# breaks 64-bit builds where NDK headers define bcopy as a macro:
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_setpgrp_void=yes ac_cv_func_bcopy=yes"
|
|
|
|
#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"
|
|
# Avoid trying to build w3mimg:
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-image=no"
|
|
|
|
# For Makefile.in.patch:
|
|
export TERMUX_PKG_BUILDER_DIR
|