Commit | Line | Data |
---|---|---|
ecb2ad16 FF |
1 | TERMUX_PKG_HOMEPAGE=http://w3m.sourceforge.net/ |
2 | TERMUX_PKG_DESCRIPTION="Text based Web browser and pager" | |
2c0ad432 FF |
3 | local _MAJOR_VERSION=0.5.3 |
4 | local _MINOR_VERSION=20180125 | |
1094cd45 | 5 | TERMUX_PKG_VERSION=0.5.3.$_MINOR_VERSION |
2c0ad432 | 6 | TERMUX_PKG_SHA256=c75068ef06963c9e3fd387e8695a203c6edda2f467b5f2f754835afb75eb36f3 |
1094cd45 FF |
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 | |
ecb2ad16 FF |
10 | TERMUX_PKG_BUILD_IN_SRC=yes |
11 | TERMUX_PKG_DEPENDS="libgc, ncurses, openssl" | |
6c79834f | 12 | # ac_cv_func_bcopy=yes to avoid w3m defining it's own bcopy function, which |
bccd6e27 | 13 | # breaks 64-bit builds where NDK headers define bcopy as a macro: |
6c79834f | 14 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_func_setpgrp_void=yes ac_cv_func_bcopy=yes" |
ee7d67ae | 15 | |
676164fb OS |
16 | #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. |
17 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-browser=termux-open-url" | |
18 | #Overwrite the default editor to just vi, as the default was /usr/bin/vi. | |
19 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-editor=vi" | |
83e7124d FF |
20 | # Avoid trying to build w3mimg: |
21 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-image=no" | |
676164fb | 22 | |
ee7d67ae FF |
23 | # For Makefile.in.patch: |
24 | export TERMUX_PKG_BUILDER_DIR |