2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
16 PKG_SOURCE_URL:=http://www.monkey.org/~provos/
17 PKG_MD5SUM:=a00e037e4d3f9e4fe9893e8a2d27918c
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libevent
28 TITLE:=Event notification library
29 URL:=http://www.monkey.org/~provos/libevent/
32 define Package/libevent/description
33 The libevent API provides a mechanism to execute a callback function
34 when a specific event occurs on a file descriptor or after a timeout
35 has been reached. Furthermore, libevent also support callbacks due
36 to signals or regular timeouts.
38 libevent is meant to replace the event loop found in event driven
39 network servers. An application just needs to call event_dispatch()
40 and then add or remove events dynamically without having to change
44 TARGET_CFLAGS += $(FPIC)
51 CFLAGS="$(TARGET_CFLAGS)" \
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so} $(1)/usr/lib/
60 define Package/libevent/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
65 $(eval $(call BuildPackage,libevent))