2019-11-17 16:14:59 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.netsurf-browser.org/
|
2020-02-11 16:06:23 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="NetSurf is a free, open source web browser"
|
2019-11-17 16:14:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-05-14 00:01:15 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2020-11-22 00:34:02 +01:00
|
|
|
TERMUX_PKG_VERSION=3.9
|
|
|
|
TERMUX_PKG_REVISION=19
|
2019-11-17 16:14:59 +01:00
|
|
|
TERMUX_PKG_SRCURL=http://download.netsurf-browser.org/netsurf/releases/source-full/netsurf-all-${TERMUX_PKG_VERSION}.tar.gz
|
2020-11-22 00:34:02 +01:00
|
|
|
TERMUX_PKG_SHA256=11e384eaf47e65c186da5001f1055a02f2d72ff17b50f403b8392546a2cf65ff
|
2019-12-10 15:36:03 +01:00
|
|
|
TERMUX_PKG_DEPENDS="desktop-file-utils, exo, libjpeg-turbo, libpng, gtk3, openssl, libcurl, libiconv, libwebp"
|
2019-11-17 16:14:59 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gtk3"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-06-03 22:07:10 +02:00
|
|
|
termux_step_configure () {
|
|
|
|
echo CC=$CC
|
|
|
|
export HOST=`$CC -dumpmachine`
|
|
|
|
export BUILD=`$CC_FOR_BUILD -dumpmachine`
|
|
|
|
export CFLAGS+=" -I${TERMUX_PREFIX}/include"
|
|
|
|
export CPPFLAGS+=" -I${TERMUX_PREFIX}/include"
|
|
|
|
export CXXFLAGS+=" -I${TERMUX_PREFIX}/include"
|
2019-11-17 16:14:59 +01:00
|
|
|
mkdir -p netsurf/build/Linux-gtk3
|
|
|
|
# Note: NETSURF_USE_DUKTAPE= disables javascript, because I couldn't figure out how to build
|
|
|
|
# required the nsgenbind tool so that it can be executed on the *host* (it is used during the build process only)
|
2020-06-03 22:07:10 +02:00
|
|
|
make PREFIX="${TERMUX_PREFIX}" NETSURF_GTK_MAJOR=3 NETSURF_USE_DUKTAPE=NO NETSURF_USE_LIBICONV_PLUG=NO toolchain=clang
|
2019-11-17 16:14:59 +01:00
|
|
|
}
|
2020-06-03 22:07:10 +02:00
|
|
|
termux_step_make() {
|
|
|
|
# Nothing to do
|
|
|
|
echo CC=$CC
|
2019-11-17 16:14:59 +01:00
|
|
|
}
|
2020-06-03 22:07:10 +02:00
|
|
|
termux_step_make_install () {
|
|
|
|
echo CC=$CC
|
|
|
|
export HOST=`$CC -dumpmachine`
|
|
|
|
export BUILD=`$CC_FOR_BUILD -dumpmachine`
|
|
|
|
export CFLAGS+=" -I${TERMUX_PREFIX}/include"
|
|
|
|
export CPPFLAGS+=" -I${TERMUX_PREFIX}/include"
|
|
|
|
export CXXFLAGS+=" -I${TERMUX_PREFIX}/include"
|
|
|
|
make install PREFIX="${TERMUX_PREFIX}" NETSURF_GTK_MAJOR=3 NETSURF_USE_DUKTAPE=NO NETSURF_USE_LIBICONV_PLUG=NO toolchain=clang
|
|
|
|
}
|