dda5d1df0e0769f1315124117aa67517083e9b86
[packages.git] / net / znc / Makefile
1 #
2 # Copyright (C) 2009-2010 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:=znc
11 PKG_VERSION:=0.078
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/znc
16 PKG_MD5SUM:=b1379bd6609353ebbc8df7ec19bd004f
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/znc
21   SUBMENU:=Instant Messaging
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libopenssl +uclibcxx
25   TITLE:=ZNC
26   URL:=http://en.znc.in/
27 endef
28
29 define Package/znc/description
30         ZNC is an IRC bouncer with many advanced features like detaching,
31         multiple users, per channel playback buffer, SSL, IPv6, transparent DCC
32         bouncing, and c++ module support to name a few.
33 endef
34
35 CONFIGURE_VARS += \
36         CXX="$(TARGET_CROSS)-g++-uc"
37         CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
38         CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
39         LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
40         LIBS="-luClibc++ -lm -lssl $(LIBGCC_S) -lc"
41
42 CONFIGURE_ARGS += \
43         --disable-c-ares \
44         --disable-modules \
45         --disable-perl
46
47 MAKE_FLAGS += \
48         CXX="g++-uc"
49
50 define Build/Configure
51         $(call Build/Configure/Default,)
52         $(call libtool_disable_rpath)
53 endef
54
55 define Build/Compile
56         $(call Build/Compile/Default,)
57 endef
58
59 define Package/znc/install
60         $(INSTALL_DIR) $(1)/usr/bin
61         $(INSTALL_BIN) $(PKG_BUILD_DIR)/znc $(1)/usr/bin/
62 endef
63
64 $(eval $(call BuildPackage,znc))