frobtads: Fix building with current clang
[termux-packages] / disabled-packages / squid / build.sh
CommitLineData
ffcb22f1 1TERMUX_PKG_HOMEPAGE=http://www.squid-cache.org
379f7c79
VB
2TERMUX_PKG_DESCRIPTION="Full-featured Web proxy cache server"
3TERMUX_PKG_VERSION=3.5.25
4TERMUX_PKG_DEPENDS="libcrypt, openssl"
ffcb22f1 5TERMUX_PKG_SRCURL=http://www.squid-cache.org/Versions/v3/3.5/squid-${TERMUX_PKG_VERSION}.tar.xz
379f7c79
VB
6TERMUX_PKG_SHA256=28959254c32b8cd87e9599b6beb97352cf0638524e0f5ac3e1754f08462f3585
7TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
8# disk-io requires msgctl and store-io requires disk-io
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-strict-error-checking --disable-disk-io --disable-storeio --without-mit-krb5 --with-dl"
10TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-openssl --enable-auth --without-libnettle --enable-translation --with-size-optimizations --without-libxml2"
ffcb22f1
VB
11TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --libexecdir=$TERMUX_PREFIX/libexec/squid --sysconfdir=$TERMUX_PREFIX/etc/squid --datarootdir=$TERMUX_PREFIX/share/squid"
12
13termux_step_pre_configure () {
ffcb22f1
VB
14 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" squid_cv_gnu_atomics=yes"
15 LDFLAGS="$LDFLAGS -llog"
16
17 # needed for building cf_gen
18 export BUILDCXX=g++
19 # else it picks up our cross CXXFLAGS
20 export BUILDCXXFLAGS=' '
21}
22