e7e5209116760bb1bb5fb176af7e21081b37eeb4
[termux-packages] / disabled-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.25
4 TERMUX_PKG_DEPENDS="libcrypt, openssl"
5 TERMUX_PKG_SRCURL=http://www.squid-cache.org/Versions/v3/3.5/squid-${TERMUX_PKG_VERSION}.tar.xz
6 TERMUX_PKG_SHA256=28959254c32b8cd87e9599b6beb97352cf0638524e0f5ac3e1754f08462f3585
7 TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
8 # disk-io requires msgctl and store-io requires disk-io
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-strict-error-checking --disable-disk-io --disable-storeio --without-mit-krb5 --with-dl"
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-openssl --enable-auth --without-libnettle --enable-translation --with-size-optimizations --without-libxml2"
11 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --libexecdir=$TERMUX_PREFIX/libexec/squid --sysconfdir=$TERMUX_PREFIX/etc/squid --datarootdir=$TERMUX_PREFIX/share/squid"
12
13 termux_step_pre_configure () {
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