2017-04-22 00:48:19 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://memcached.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Free & open source, high-performance, distributed memory object caching system"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-11-22 15:03:05 +01:00
|
|
|
TERMUX_PKG_VERSION=1.6.9
|
2018-05-25 21:15:00 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://www.memcached.org/files/memcached-$TERMUX_PKG_VERSION.tar.gz
|
2020-11-22 15:03:05 +01:00
|
|
|
TERMUX_PKG_SHA256=d5a62ce377314dbffdb37c4467e7763e3abae376a16171e613cbe69956f092d1
|
2017-04-22 00:48:19 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libevent, libsasl"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="memcached-dev"
|
|
|
|
TERMUX_PKG_REPLACES="memcached-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-03-29 21:53:20 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-static --enable-sasl --disable-coverage"
|
2017-04-22 00:48:19 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2020-03-20 12:38:06 +01:00
|
|
|
CPPFLAGS+=" -D__USE_GNU"
|
2017-04-22 00:48:19 +02:00
|
|
|
|
2020-03-20 12:38:06 +01:00
|
|
|
export ac_cv_c_endian=little
|
2017-04-22 00:48:19 +02:00
|
|
|
|
2020-09-06 17:26:08 +02:00
|
|
|
# Fix SASL configuration path
|
2020-03-20 12:38:06 +01:00
|
|
|
perl -p -i -e "s#/etc/sasl#$TERMUX_PREFIX/etc/sasl#" $TERMUX_PKG_BUILDDIR/sasl_defs.c
|
|
|
|
|
|
|
|
# getsubopt() taken from https://github.com/lxc/lxc/blob/master/src/include/getsubopt.c
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/getsubopt.c $TERMUX_PKG_SRCDIR
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/getsubopt.h $TERMUX_PKG_SRCDIR
|
2020-04-13 12:17:24 +02:00
|
|
|
|
|
|
|
autoreconf -vfi
|
2017-10-14 23:57:39 +02:00
|
|
|
}
|