php: Update from 7.1.1 to 7.1.2 and enable pcntl
[termux-packages] / packages / krb5 / build.sh
CommitLineData
e38a1e2b
VB
1TERMUX_PKG_HOMEPAGE='https://web.mit.edu/kerberos'
2TERMUX_PKG_DESCRIPTION='The Kerberos network authentication system'
3TERMUX_PKG_VERSION='1.15'
47463899 4TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, readline, c-ares, openssl, libutil"
e38a1e2b
VB
5TERMUX_PKG_SRCURL="https://web.mit.edu/kerberos/dist/krb5/$TERMUX_PKG_VERSION/krb5-$TERMUX_PKG_VERSION.tar.gz"
6TERMUX_PKG_SHA256='fd34752774c808ab4f6f864f935c49945f5a56b62240b1ad4ab1af7b4ded127c'
7TERMUX_PKG_FOLDERNAME="krb5-$TERMUX_PKG_VERSION/src"
8TERMUX_PKG_MAINTAINER='Vishal Biswas @vishalbiswas'
47463899 9TERMUX_PKG_EXTRA_CONFIGURE_ARGS=' --with-readline --with-netlib=-lcares --without-system-verto'
e38a1e2b
VB
10
11termux_step_pre_configure () {
12 # cannot test these when cross compiling
13 export krb5_cv_attr_constructor_destructor='yes,yes'
14 export ac_cv_func_regcomp='yes'
15 export ac_cv_printf_positional='yes'
16
17 # disable some -Werror=
18 export krb5_cv_cc_flag__dash_Werror_eq_uninitialized='no'
19 export krb5_cv_cc_flag__dash_Werror_dash_implicit_dash_function_dash_declaration='no'
20
21 # bionic doesn't have getpass
22 cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/"
23
24 LDFLAGS="$LDFLAGS -landroid-glob -llog"
25}