libevent.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ################################################################################
  2. #
  3. # libevent
  4. #
  5. ################################################################################
  6. LIBEVENT_VERSION = 2.1.12
  7. LIBEVENT_SITE = https://github.com/libevent/libevent/releases/download/release-$(LIBEVENT_VERSION)-stable
  8. LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
  9. LIBEVENT_INSTALL_STAGING = YES
  10. LIBEVENT_LICENSE = BSD-3-Clause, OpenBSD
  11. LIBEVENT_LICENSE_FILES = LICENSE
  12. LIBEVENT_CPE_ID_VALID = YES
  13. LIBEVENT_CONF_OPTS = \
  14. --disable-libevent-regress \
  15. --disable-samples
  16. HOST_LIBEVENT_CONF_OPTS = \
  17. --disable-libevent-regress \
  18. --disable-samples \
  19. --disable-openssl
  20. define LIBEVENT_REMOVE_PYSCRIPT
  21. rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
  22. endef
  23. # libevent installs a python script to target - get rid of it if we
  24. # don't have python support enabled
  25. ifneq ($(BR2_PACKAGE_PYTHON3),y)
  26. LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
  27. endif
  28. ifeq ($(BR2_PACKAGE_OPENSSL),y)
  29. LIBEVENT_DEPENDENCIES += host-pkgconf openssl
  30. LIBEVENT_CONF_OPTS += --enable-openssl
  31. else
  32. LIBEVENT_CONF_OPTS += --disable-openssl
  33. endif
  34. $(eval $(autotools-package))
  35. $(eval $(host-autotools-package))