2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-14 06:38:00 +01:00
|
|
|
#
|
|
|
|
# libevent
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2020-07-06 20:29:45 +02:00
|
|
|
LIBEVENT_VERSION = 2.1.12
|
2019-06-12 08:42:09 +02:00
|
|
|
LIBEVENT_SITE = https://github.com/libevent/libevent/releases/download/release-$(LIBEVENT_VERSION)-stable
|
|
|
|
LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
|
2009-08-11 17:35:23 +02:00
|
|
|
LIBEVENT_INSTALL_STAGING = YES
|
2017-03-30 15:43:38 +02:00
|
|
|
LIBEVENT_LICENSE = BSD-3-Clause, OpenBSD
|
2014-06-25 00:10:30 +02:00
|
|
|
LIBEVENT_LICENSE_FILES = LICENSE
|
2021-03-05 23:27:44 +01:00
|
|
|
LIBEVENT_CPE_ID_VENDOR = libevent_project
|
2019-08-17 21:32:08 +02:00
|
|
|
LIBEVENT_CONF_OPTS = \
|
|
|
|
--disable-libevent-regress \
|
|
|
|
--disable-samples
|
|
|
|
HOST_LIBEVENT_CONF_OPTS = \
|
|
|
|
--disable-libevent-regress \
|
|
|
|
--disable-samples \
|
|
|
|
--disable-openssl
|
2007-01-14 06:38:00 +01:00
|
|
|
|
2010-09-01 17:13:56 +02:00
|
|
|
define LIBEVENT_REMOVE_PYSCRIPT
|
|
|
|
rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
|
|
|
|
endef
|
2009-09-19 21:31:57 +02:00
|
|
|
|
2010-09-01 17:13:56 +02:00
|
|
|
# libevent installs a python script to target - get rid of it if we
|
|
|
|
# don't have python support enabled
|
2020-01-22 20:14:38 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
|
2010-09-01 17:13:56 +02:00
|
|
|
LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
|
2009-09-19 21:31:57 +02:00
|
|
|
endif
|
2010-09-01 17:13:56 +02:00
|
|
|
|
2018-04-02 13:58:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBEVENT_DEPENDENCIES += host-pkgconf openssl
|
2015-01-01 12:39:56 +01:00
|
|
|
LIBEVENT_CONF_OPTS += --enable-openssl
|
|
|
|
else
|
|
|
|
LIBEVENT_CONF_OPTS += --disable-openssl
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2013-12-02 14:00:10 +01:00
|
|
|
$(eval $(host-autotools-package))
|