2009-09-20 12:27:03 +00:00
|
|
|
#
|
2010-01-14 18:58:18 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-18 16:43:58 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libevent
|
2010-01-14 18:58:18 +00:00
|
|
|
PKG_VERSION:=1.4.13
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-18 16:43:58 +00:00
|
|
|
|
2008-11-28 17:57:39 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
|
2006-07-18 16:43:58 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.monkey.org/~provos/
|
2010-01-14 18:58:18 +00:00
|
|
|
PKG_MD5SUM:=0b3ea18c634072d12b3c1ee734263664
|
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-01-14 18:58:18 +00:00
|
|
|
PKG_INSTALL:=1
|
2006-07-18 16:43:58 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libevent
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Event notification library
|
|
|
|
URL:=http://www.monkey.org/~provos/libevent/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libevent/description
|
2009-09-20 12:27:03 +00:00
|
|
|
The libevent API provides a mechanism to execute a callback function
|
|
|
|
when a specific event occurs on a file descriptor or after a timeout
|
|
|
|
has been reached. Furthermore, libevent also support callbacks due
|
2007-10-14 04:32:56 +00:00
|
|
|
to signals or regular timeouts.
|
2009-09-20 12:27:03 +00:00
|
|
|
|
|
|
|
libevent is meant to replace the event loop found in event driven
|
|
|
|
network servers. An application just needs to call event_dispatch()
|
|
|
|
and then add or remove events dynamically without having to change
|
2007-10-14 04:32:56 +00:00
|
|
|
the event loop.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2009-04-19 20:54:26 +00:00
|
|
|
Hooks/InstallDev/Post += libtool_fixup_libdir
|
|
|
|
|
2007-07-31 10:46:18 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2006-07-18 16:43:58 +00:00
|
|
|
|
2007-07-31 10:46:18 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2006-07-18 16:43:58 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2008-11-28 17:57:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-04-19 20:54:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.{la,a,so} $(1)/usr/lib/
|
2008-11-28 17:57:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so* $(1)/usr/lib/
|
2006-07-18 16:43:58 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libevent/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-11-28 17:57:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so.* $(1)/usr/lib/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-18 16:43:58 +00:00
|
|
|
$(eval $(call BuildPackage,libevent))
|