[package] add znc (#5063)
[openwrt/svn-archive/archive.git] / net / znc / Makefile
1 #
2 # Copyright (C) 2009 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.068
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://kent.dl.sourceforge.net/sourceforge/znc
16 PKG_MD5SUM:=763162d90c67814780de67aa88347c38
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/znc
21 SUBMENU:=Instant Messaging
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+openssl +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, multiple users, per channel playback buffer, SSL, IPv6, transparent DCC bouncing, and c++ module
31 support to name a few.
32 endef
33
34 CONFIGURE_VARS += \
35 CXX="$(TARGET_CROSS)-g++"
36 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
39 LIBS="-luClibc++ -lc -lm -lgcc -lssl"
40
41 CONFIGURE_ARGS += \
42 $(TARGET_CONFIGURE_OPTS) \
43 --disable-perl \
44 --disable-ipv6 \
45
46 define Build/Configure
47 $(call Build/Configure/Default,)
48 $(call libtool_disable_rpath)
49 endef
50
51 define Build/Compile
52 $(call Build/Compile/Default,)
53 endef
54
55 define Package/znc/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/znc $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,znc))