pptpd: moved to github
[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:=+libevent
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 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libevent
36 TARGET_LDFLAGS = -L$(STAGING_DIR)/usr/lib/libevent -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
37
38 ifdef CONFIG_USE_GLIBC
39 TARGET_LDFLAGS += -lrt
40 endif
41
42 define Package/uhub/install
43         $(INSTALL_DIR) $(1)/usr/local/bin
44         $(INSTALL_BIN) $(PKG_BUILD_DIR)/uhub $(1)/usr/local/bin/
45         $(INSTALL_DIR) $(1)/etc/uhub/
46         $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/uhub.conf $(1)/etc/uhub/
47 endef
48
49 define Package/uhub/conffiles
50 /etc/uhub/uhub.conf
51 endef
52
53 $(eval $(call BuildPackage,uhub))