2 # Copyright (C) 2009-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-src.
tar.gz
15 PKG_SOURCE_URL
:=http
://www.extatic.org
/downloads
/uhub
/
16 PKG_MD5SUM
:=45d35d9757bc0a84297dec51520f725b
18 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=High performance ADC hub
26 URL
:=http
://www.extatic.org
/uhub
/
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.
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
38 ifdef CONFIG_USE_GLIBC
39 TARGET_LDFLAGS
+= -lrt
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
/
49 define Package
/uhub
/conffiles
53 $(eval
$(call BuildPackage
,uhub
))