2015-11-08 07:51:27 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://serf.apache.org/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="High performance C-based HTTP client library"
|
2016-09-26 16:48:48 +02:00
|
|
|
TERMUX_PKG_VERSION=1.3.9
|
2016-05-23 08:47:47 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://archive.apache.org/dist/serf/serf-${TERMUX_PKG_VERSION}.tar.bz2
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DEPENDS="apr-util, openssl"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
|
|
|
|
termux_step_make_install () {
|
|
|
|
scons APR=$TERMUX_PREFIX \
|
|
|
|
APU=$TERMUX_PREFIX \
|
|
|
|
CC=`which $CC` \
|
|
|
|
CFLAGS="$CFLAGS -std=c99" \
|
|
|
|
CPPFLAGS="$CPPFLAGS" \
|
|
|
|
LINKFLAGS="$LDFLAGS" \
|
|
|
|
OPENSSL=$TERMUX_PREFIX \
|
2016-09-26 16:48:48 +02:00
|
|
|
PREFIX=$TERMUX_PREFIX \
|
2015-06-13 01:03:31 +02:00
|
|
|
install
|
2016-09-26 16:48:48 +02:00
|
|
|
# Avoid specifying -lcrypt:
|
|
|
|
perl -p -i -e 's/-lcrypt //' $TERMUX_PREFIX/lib/pkgconfig/serf-1.pc
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|