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 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/libevent
27 TITLE
:=Event notification library
28 URL
:=http
://www.monkey.org
/~provos
/libevent
/
31 define Package
/libevent
/description
32 The libevent API provides a mechanism to execute a callback function
33 when a specific event occurs on a file descriptor or after a timeout
34 has been reached. Furthermore
, libevent also support callbacks due
35 to signals or regular timeouts.
37 libevent is meant to replace the event loop found in event driven
38 network servers. An application just needs to call event_dispatch
()
39 and then add or remove events dynamically without having to change
48 CFLAGS
="$(TARGET_CFLAGS)" \
49 DESTDIR
="$(PKG_INSTALL_DIR)" \
52 define Build
/InstallDev
53 mkdir
-p
$(1)/usr
/include
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/event.h
$(1)/usr
/include/
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libevent.
{a
,so
} $(1)/usr
/lib
/
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libevent-
$(PKG_VERSION
).so
* $(1)/usr
/lib
/
60 define Package
/libevent
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libevent-
$(PKG_VERSION
).so.
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libevent
))