source: packages/libs/libevent/Makefile @ 15281

Last change on this file since 15281 was 15281, checked in by florian, 8 years ago

[package] update libevent to 1.4.9 (#4907)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libevent
11PKG_VERSION:=1.4.9
12PKG_RELEASE:=1
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
16PKG_SOURCE_URL:=http://www.monkey.org/~provos/
17PKG_MD5SUM:=5154fd4582d64077d6b17851f04d6957
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libevent
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=Event notification library
25  URL:=http://www.monkey.org/~provos/libevent/
26endef
27
28define Package/libevent/description
29        The libevent API provides a mechanism to execute a callback function
30        when a specific event occurs on a file descriptor or after a timeout
31        has been reached. Furthermore, libevent also support callbacks due
32        to signals or regular timeouts.
33       
34        libevent is meant to replace the event loop found in event driven
35        network servers. An application just needs to call event_dispatch() 
36        and then add or remove events dynamically without having to change
37        the event loop.
38endef
39
40TARGET_CFLAGS += $(FPIC)
41
42Hooks/InstallDev/Post += libtool_fixup_libdir
43
44CONFIGURE_ARGS += \
45        --enable-shared \
46        --enable-static \
47
48MAKE_FLAGS += \
49        CFLAGS="$(TARGET_CFLAGS)" \
50        DESTDIR="$(PKG_INSTALL_DIR)" \
51        all install
52
53define Build/InstallDev
54        mkdir -p $(1)/usr/include
55        $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
56        mkdir -p $(1)/usr/lib
57        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent.{la,a,so} $(1)/usr/lib/
58        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so* $(1)/usr/lib/
59endef
60
61define Package/libevent/install
62        $(INSTALL_DIR) $(1)/usr/lib
63        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-1.4.so.* $(1)/usr/lib/
64endef
65
66$(eval $(call BuildPackage,libevent))
Note: See TracBrowser for help on using the repository browser.