Commit | Line | Data |
---|---|---|
abe211bf DM |
1 | TERMUX_PKG_HOMEPAGE=https://memcached.org/ |
2 | TERMUX_PKG_DESCRIPTION="Free & open source, high-performance, distributed memory object caching system" | |
76a1dc8a FF |
3 | TERMUX_PKG_VERSION=1.5.6 |
4 | TERMUX_PKG_SHA256=9675ee859d7d81f7a950f190a6812720b26f08228d356044ec517d4d5af25f03 | |
abe211bf | 5 | TERMUX_PKG_SRCURL=http://www.memcached.org/files/memcached-$TERMUX_PKG_VERSION.tar.gz |
abe211bf DM |
6 | TERMUX_PKG_DEPENDS="libevent, libsasl" |
7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-sasl --disable-coverage" | |
8 | TERMUX_PKG_BUILD_IN_SRC=yes | |
9 | ||
10 | termux_step_pre_configure() { | |
11 | export ac_cv_c_endian=little | |
12 | ||
13 | # fix SASL configuration path | |
14 | perl -p -i -e "s#/etc/sasl#$TERMUX_PREFIX/etc/sasl#" $TERMUX_PKG_BUILDDIR/sasl_defs.c | |
15 | ||
16 | # getsubopt() taken from https://github.com/lxc/lxc/blob/master/src/include/getsubopt.c | |
17 | cp $TERMUX_PKG_BUILDER_DIR/getsubopt.c $TERMUX_PKG_SRCDIR | |
18 | cp $TERMUX_PKG_BUILDER_DIR/getsubopt.h $TERMUX_PKG_SRCDIR | |
dfeac5a9 | 19 | } |