libev.mk 948 B

12345678910111213141516171819202122232425262728
  1. ################################################################################
  2. #
  3. # libev
  4. #
  5. ################################################################################
  6. LIBEV_VERSION = 4.33
  7. LIBEV_SITE = http://dist.schmorp.de/libev/Attic
  8. LIBEV_INSTALL_STAGING = YES
  9. LIBEV_LICENSE = BSD-2-Clause or GPL-2.0+
  10. LIBEV_LICENSE_FILES = LICENSE
  11. # libev has some assembly function that is not present in Thumb mode:
  12. # Error: selected processor does not support `mcr p15,0,r3,c7,c10,5' in Thumb mode
  13. # so, we deactivate Thumb mode
  14. ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
  15. LIBEV_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
  16. endif
  17. # The 'compatibility' event.h header conflicts with libevent
  18. # It's completely unnecessary for BR packages so remove it
  19. define LIBEV_DISABLE_EVENT_H_INSTALL
  20. $(SED) 's/ event.h//' $(@D)/Makefile.in
  21. endef
  22. LIBEV_POST_PATCH_HOOKS += LIBEV_DISABLE_EVENT_H_INSTALL
  23. $(eval $(autotools-package))
  24. $(eval $(host-autotools-package))