20230ad4fa06dc6c49ebb2de0ba70646fbbe5816
[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.078
12 PKG_RELEASE:=1
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++ -lc -lm -lgcc -lssl"
41
42 CONFIGURE_ARGS += \
43 $(TARGET_CONFIGURE_OPTS) \
44 --disable-c-ares \
45 --disable-modules \
46 --disable-perl \
47
48 MAKE_FLAGS += \
49 CXX="g++-uc"
50
51 define Build/Configure
52 $(call Build/Configure/Default,)
53 $(call libtool_disable_rpath)
54 endef
55
56 define Build/Compile
57 $(call Build/Compile/Default,)
58 endef
59
60 define Package/znc/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/znc $(1)/usr/bin/
63 endef
64
65 $(eval $(call BuildPackage,znc))