[package] uhub: depend on libevent2 instead of libevent
[packages.git] / net / uhub / Makefile
1 #
2 # Copyright (C) 2009-2012 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:=uhub
11 PKG_VERSION:=0.2.8
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
15 PKG_SOURCE_URL:=http://www.extatic.org/downloads/uhub/
16 PKG_MD5SUM:=45d35d9757bc0a84297dec51520f725b
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/uhub
21   SUBMENU:=P2P
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libevent2 +USE_EGLIBC:librt
25   TITLE:=High performance ADC hub
26   URL:=http://www.extatic.org/uhub/
27 endef
28
29 define Package/uhub/description
30         uhub is a high performance peer-to-peer hub for the ADC network.
31         Its low memory footprint allows it to handle several thousand users
32         on high-end servers, or a small private hub on embedded hardware.
33 endef
34
35 ifdef CONFIG_USE_EGLIBC
36 TARGET_LDFLAGS += -lrt
37 endif
38
39 define Package/uhub/install
40         $(INSTALL_DIR) $(1)/usr/local/bin
41         $(INSTALL_BIN) $(PKG_BUILD_DIR)/uhub $(1)/usr/local/bin/
42         $(INSTALL_DIR) $(1)/etc/uhub/
43         $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/uhub.conf $(1)/etc/uhub/
44 endef
45
46 define Package/uhub/conffiles
47 /etc/uhub/uhub.conf
48 endef
49
50 $(eval $(call BuildPackage,uhub))