Transition from gnustl to libc++
[termux-packages] / packages / squid / build.sh
1 TERMUX_PKG_HOMEPAGE=http://www.squid-cache.org
2 TERMUX_PKG_DESCRIPTION="Full-featured Web proxy cache server"
3 TERMUX_PKG_VERSION=3.5.26
4 TERMUX_PKG_REVISION=1
5 TERMUX_PKG_DEPENDS="libcrypt, openssl, libnettle, libltdl"
6 TERMUX_PKG_SRCURL=http://www.squid-cache.org/Versions/v3/3.5/squid-${TERMUX_PKG_VERSION}.tar.xz
7 TERMUX_PKG_SHA256=baa1eecb7d6e18881f4455060d80ee7cb95ae7e2695fdccf7e21ccc8f879a982
8 TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
9 # disk-io requires msgctl and store-io requires disk-io
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
11 ac_cv_lib_sasl2_sasl_errstring=no
12 ac_cv_dbopen_libdb=no
13 --disable-external-acl-helpers
14 --disable-strict-error-checking
15 --disable-disk-io
16 --disable-storeio
17 --without-mit-krb5
18 --with-dl
19 --with-openssl
20 --disable-forw-via-db
21 --enable-auth
22 --without-libnettle
23 --enable-translation
24 --with-size-optimizations
25 --without-libxml2
26 --without-gnutls
27 --libexecdir=$TERMUX_PREFIX/libexec/squid
28 --sysconfdir=$TERMUX_PREFIX/etc/squid
29 --datarootdir=$TERMUX_PREFIX/share/squid
30 --mandir=$TERMUX_PREFIX/share/man
31 squid_cv_gnu_atomics=yes
32 "
33
34 termux_step_pre_configure () {
35 LDFLAGS="$LDFLAGS -llog"
36
37 # needed for building cf_gen
38 export BUILDCXX=g++
39 # else it picks up our cross CXXFLAGS
40 export BUILDCXXFLAGS=' '
41 }
42