2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://www.monkey.org
/~provos
/
18 PKG_MD5SUM
:=a5bd281aeb41bdaa48fbbf0495423d20
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libevent
25 TITLE
:=Event notification library
26 URL
:=http
://www.monkey.org
/~provos
/libevent
/
29 define Package
/libevent
/description
30 The libevent API provides a mechanism to execute a callback function
31 when a specific event occurs on a file descriptor or after a timeout
32 has been reached. Furthermore
, libevent also support callbacks due
33 to signals or regular timeouts.
35 libevent is meant to replace the event loop found in event driven
36 network servers. An application just needs to call event_dispatch
()
37 and then add or remove events dynamically without having to change
46 CFLAGS
="$(TARGET_CFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Build
/InstallDev
51 mkdir
-p
$(1)/usr
/include
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/event.h
$(1)/usr
/include/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libevent.
{a
,so
} $(1)/usr
/lib
/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libevent-
$(PKG_VERSION
).so
* $(1)/usr
/lib
/
58 define Package
/libevent
/install
59 $(INSTALL_DIR
) $(1)/usr
/lib
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libevent-
$(PKG_VERSION
).so.
* $(1)/usr
/lib
/
63 $(eval
$(call BuildPackage
,libevent
))