OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2011-2015 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=libevent2 |
||
3 | office | 11 | PKG_VERSION:=2.0.22 |
12 | PKG_RELEASE:=1 |
||
1 | office | 13 | |
3 | office | 14 | PKG_BUILD_DIR:=$(BUILD_DIR)/libevent-$(PKG_VERSION)-stable |
1 | office | 15 | PKG_SOURCE:=libevent-$(PKG_VERSION)-stable.tar.gz |
3 | office | 16 | PKG_SOURCE_URL:=@SF/levent |
17 | PKG_HASH:=71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3 |
||
1 | office | 18 | PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io> |
19 | PKG_LICENSE:=BSD-3-Clause |
||
20 | PKG_CPE_ID:=cpe:/a:libevent_project:libevent |
||
21 | |||
22 | PKG_FIXUP:=autoreconf |
||
23 | PKG_INSTALL:=1 |
||
24 | PKG_BUILD_PARALLEL:=1 |
||
25 | |||
26 | include $(INCLUDE_DIR)/package.mk |
||
27 | |||
28 | define Package/libevent2/Default |
||
29 | SECTION:=libs |
||
30 | CATEGORY:=Libraries |
||
31 | TITLE:=Event notification |
||
3 | office | 32 | URL:=http://www.monkey.org/~provos/libevent/ |
1 | office | 33 | endef |
34 | |||
35 | define Package/libevent2/Default/description |
||
36 | The libevent API provides a mechanism to execute a callback function |
||
37 | when a specific event occurs on a file descriptor or after a timeout |
||
38 | has been reached. Furthermore, libevent also support callbacks due |
||
39 | to signals or regular timeouts. |
||
40 | |||
41 | libevent is meant to replace the event loop found in event driven |
||
42 | network servers. An application just needs to call event_dispatch() |
||
43 | and then add or remove events dynamically without having to change |
||
44 | the event loop. |
||
45 | endef |
||
46 | |||
47 | define Package/libevent2 |
||
48 | $(call Package/libevent2/Default) |
||
3 | office | 49 | TITLE+= library (version 2.0) |
1 | office | 50 | endef |
51 | |||
52 | define Package/libevent2/description |
||
53 | $(call Package/libevent2/Default/description) |
||
54 | |||
55 | This package contains the libevent shared library historically |
||
56 | containing both the core & extra libraries. |
||
57 | endef |
||
58 | |||
59 | define Package/libevent2-core |
||
60 | $(call Package/libevent2/Default) |
||
3 | office | 61 | TITLE+= core library (version 2.0) |
1 | office | 62 | endef |
63 | |||
64 | define Package/libevent2-core/description |
||
65 | $(call Package/libevent2/Default/description) |
||
66 | |||
67 | This package contains the libevent core shared library for the event, |
||
68 | buffer & utility functions. |
||
69 | endef |
||
70 | |||
71 | define Package/libevent2-extra |
||
72 | $(call Package/libevent2/Default) |
||
3 | office | 73 | TITLE+= extra library (version 2.0) |
1 | office | 74 | endef |
75 | |||
76 | define Package/libevent2-extra/description |
||
77 | $(call Package/libevent2/Default/description) |
||
78 | |||
79 | This package contains the libevent extra shared library for specific |
||
80 | protocols including HTTP, DNS & RPC. |
||
81 | endef |
||
82 | |||
83 | define Package/libevent2-openssl |
||
84 | $(call Package/libevent2/Default) |
||
3 | office | 85 | TITLE+= OpenSSL library (version 2.0) |
1 | office | 86 | DEPENDS+=+libopenssl |
87 | endef |
||
88 | |||
89 | define Package/libevent2-openssl/description |
||
90 | $(call Package/libevent2/Default/description) |
||
91 | |||
92 | This package contains the libevent OpenSSL shared library for encrypted |
||
93 | bufferevents. |
||
94 | endef |
||
95 | |||
96 | define Package/libevent2-pthreads |
||
97 | $(call Package/libevent2/Default) |
||
3 | office | 98 | TITLE+= Pthreads library (version 2.0) |
1 | office | 99 | DEPENDS+=+libpthread |
100 | endef |
||
101 | |||
102 | define Package/libevent2-pthreads/description |
||
103 | $(call Package/libevent2/Default/description) |
||
104 | |||
105 | This package contains the libevent Pthreads shared library for |
||
106 | threading & locking. |
||
107 | endef |
||
108 | |||
109 | TARGET_CFLAGS += $(FPIC) |
||
110 | |||
111 | CONFIGURE_ARGS += \ |
||
112 | --enable-shared \ |
||
113 | --enable-static \ |
||
114 | --disable-debug-mode |
||
115 | |||
116 | MAKE_FLAGS += \ |
||
117 | CFLAGS="$(TARGET_CFLAGS)" |
||
118 | |||
119 | define Build/InstallDev |
||
120 | $(INSTALL_DIR) $(1)/usr/include |
||
121 | $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ |
||
122 | $(INSTALL_DIR) $(1)/usr/lib |
||
123 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent*.{la,a,so} $(1)/usr/lib/ |
||
3 | office | 124 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent*-2.0.so* $(1)/usr/lib/ |
1 | office | 125 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
126 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libevent*.pc $(1)/usr/lib/pkgconfig/ |
||
127 | endef |
||
128 | |||
129 | define Package/libevent2/install |
||
130 | $(INSTALL_DIR) $(1)/usr/lib |
||
3 | office | 131 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent-2.0.so.* $(1)/usr/lib/ |
1 | office | 132 | endef |
133 | |||
134 | define Package/libevent2-core/install |
||
135 | $(INSTALL_DIR) $(1)/usr/lib |
||
3 | office | 136 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_core-2.0.so.* $(1)/usr/lib/ |
1 | office | 137 | endef |
138 | |||
139 | define Package/libevent2-extra/install |
||
140 | $(INSTALL_DIR) $(1)/usr/lib |
||
3 | office | 141 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_extra-2.0.so.* $(1)/usr/lib/ |
1 | office | 142 | endef |
143 | |||
144 | define Package/libevent2-openssl/install |
||
145 | $(INSTALL_DIR) $(1)/usr/lib |
||
3 | office | 146 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_openssl-2.0.so.* $(1)/usr/lib/ |
1 | office | 147 | endef |
148 | |||
149 | define Package/libevent2-pthreads/install |
||
150 | $(INSTALL_DIR) $(1)/usr/lib |
||
3 | office | 151 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevent_pthreads-2.0.so.* $(1)/usr/lib/ |
1 | office | 152 | endef |
153 | |||
154 | $(eval $(call BuildPackage,libevent2)) |
||
155 | $(eval $(call BuildPackage,libevent2-core)) |
||
156 | $(eval $(call BuildPackage,libevent2-extra)) |
||
157 | $(eval $(call BuildPackage,libevent2-openssl)) |
||
158 | $(eval $(call BuildPackage,libevent2-pthreads)) |