2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://libevent.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Library that provides asynchronous event notification"
|
2017-01-28 10:42:52 +01:00
|
|
|
TERMUX_PKG_VERSION=2.1.8
|
2017-09-12 12:00:22 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-01-28 10:42:52 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/libevent/libevent/archive/release-${TERMUX_PKG_VERSION}-stable.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=316ddb401745ac5d222d7c529ef1eada12f58f6376a66c1118eee803cb70f83d
|
2015-06-13 01:03:31 +02:00
|
|
|
# Strip away libevent core, extra and openssl libraries until someone uses them
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/event_rpcgen.py lib/libevent_*"
|
2017-01-28 16:39:37 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2017-01-28 10:42:52 +01:00
|
|
|
-DEVENT__BUILD_SHARED_LIBRARIES=ON
|
|
|
|
-DEVENT__DISABLE_BENCHMARK=ON
|
|
|
|
-DEVENT__DISABLE_OPENSSL=ON
|
|
|
|
-DEVENT__DISABLE_REGRESS=ON
|
|
|
|
-DEVENT__DISABLE_SAMPLES=ON
|
|
|
|
-DEVENT__DISABLE_TESTS=ON
|
|
|
|
-DEVENT__DISABLE_TESTS=ON
|
|
|
|
-DEVENT__HAVE_WAITPID_WITH_WNOWAIT=ON
|
|
|
|
-DEVENT__SIZEOF_PTHREAD_T=$((TERMUX_ARCH_BITS/8))
|
|
|
|
"
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Building with cmake does not install .pc files, see
|
|
|
|
# https://github.com/libevent/libevent/issues/443
|
|
|
|
cat > "$PKG_CONFIG_LIBDIR/libevent.pc" <<-HERE
|
|
|
|
Name: libevent
|
|
|
|
Description: libevent is an asynchronous notification event loop library
|
|
|
|
Version: ${TERMUX_PKG_VERSION}-stable
|
|
|
|
Libs: -levent
|
|
|
|
HERE
|
|
|
|
}
|