TERMUX_PKG_HOMEPAGE=https://www.openssl.org/
TERMUX_PKG_DESCRIPTION="Library implementing the SSL and TLS protocols as well as general purpose cryptography functions"
-TERMUX_PKG_ESSENTIAL=yes
+TERMUX_PKG_DEPENDS="ca-certificates"
TERMUX_PKG_VERSION=1.0.2d
+TERMUX_PKG_BUILD_REVISION=2
TERMUX_PKG_SRCURL="http://www.openssl.org/source/openssl-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_RM_AFTER_INSTALL="bin/c_rehash etc/ssl/misc"
TERMUX_PKG_BUILD_IN_SRC=yes
test $TERMUX_ARCH = "i686" && TERMUX_OPENSSL_PLATFORM_SUFFIX=x86
# If enabling zlib-dynamic we need "zlib-dynamic" instead of "no-comp no-dso":
./Configure android-$TERMUX_OPENSSL_PLATFORM_SUFFIX --prefix=$TERMUX_PREFIX \
- --openssldir=$TERMUX_PREFIX/etc/ssl \
+ --openssldir=$TERMUX_PREFIX/etc/tls \
shared \
no-comp no-dso \
no-ssl2 no-hw no-engines no-psk no-srp