2016-12-09 22:35:24 +01:00
TERMUX_PKG_HOMEPAGE = https://www.gnutls.org/
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DESCRIPTION = "Secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE = "LGPL-2.1"
2020-06-06 19:40:40 +02:00
TERMUX_PKG_VERSION = 3.6.14
2020-06-07 07:24:03 +02:00
TERMUX_PKG_REVISION = 3
2017-11-15 01:33:54 +01:00
TERMUX_PKG_SRCURL = https://www.gnupg.org/ftp/gcrypt/gnutls/v${ TERMUX_PKG_VERSION : 0 : 3 } /gnutls-${ TERMUX_PKG_VERSION } .tar.xz
2020-06-06 19:40:40 +02:00
TERMUX_PKG_SHA256 = 5630751adec7025b8ef955af4d141d00d252a985769f51b4059e5affa3d39d63
2019-07-20 10:42:33 +02:00
TERMUX_PKG_DEPENDS = "libgmp, libnettle, ca-certificates, libidn2, libunistring"
TERMUX_PKG_BREAKS = "libgnutls-dev"
TERMUX_PKG_REPLACES = "libgnutls-dev"
2019-08-12 17:28:41 +02:00
TERMUX_PKG_BUILD_IN_SRC = true
2019-07-20 10:42:33 +02:00
2017-07-07 12:23:00 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS = "
2018-04-10 00:31:58 +02:00
--enable-cxx
2017-07-07 12:23:00 +02:00
--disable-hardware-acceleration
--disable-openssl-compatibility
--with-default-trust-store-file= $TERMUX_PREFIX /etc/tls/cert.pem
2018-06-19 15:31:54 +02:00
--with-system-priority-file= ${ TERMUX_PREFIX } /etc/gnutls/default-priorities
2017-07-07 12:23:00 +02:00
--with-included-libtasn1
--without-p11-kit
2020-04-03 17:30:41 +02:00
--disable-guile
2017-07-07 12:23:00 +02:00
"
2019-01-27 09:39:07 +01:00
termux_step_pre_configure( ) {
CFLAGS += " -DNO_INLINE_GETPASS=1"
2020-01-05 11:54:27 +01:00
if $TERMUX_DEBUG ; then
# When doing debug build, -D_FORTIFY_SOURCE=2 gives this error:
# /home/builder/.termux-build/_cache/android-r20-api-24-v2/bin/../sysroot/usr/include/bits/fortify/string.h:157:22: error: use of undeclared identifier '__USE_FORTIFY_LEVEL'
export CFLAGS = ${ CFLAGS /-D_FORTIFY_SOURCE=2/ }
fi
2019-01-27 09:39:07 +01:00
}