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