libevent.mk 692 B

123456789101112131415161718192021222324
  1. #############################################################
  2. #
  3. # libevent
  4. #
  5. #############################################################
  6. LIBEVENT_VERSION = 2.0.14
  7. LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
  8. LIBEVENT_SITE = https://github.com/downloads/libevent/libevent
  9. LIBEVENT_AUTORECONF = NO
  10. LIBEVENT_INSTALL_STAGING = YES
  11. LIBEVENT_INSTALL_TARGET = YES
  12. define LIBEVENT_REMOVE_PYSCRIPT
  13. rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
  14. endef
  15. # libevent installs a python script to target - get rid of it if we
  16. # don't have python support enabled
  17. ifneq ($(BR2_PACKAGE_PYTHON),y)
  18. LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
  19. endif
  20. $(eval $(call AUTOTARGETS))