2 # Copyright (C) 2009 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
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/znc
16 PKG_MD5SUM
:=763162d90c67814780de67aa88347c38
18 include $(INCLUDE_DIR
)/package.mk
21 SUBMENU
:=Instant Messaging
24 DEPENDS
:=+openssl
+uclibcxx
26 URL
:=http
://en.znc.in
/
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.
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"
42 $(TARGET_CONFIGURE_OPTS
) \
46 define Build
/Configure
47 $(call Build
/Configure
/Default
,)
48 $(call libtool_disable_rpath
)
52 $(call Build
/Compile
/Default
,)
55 define Package
/znc
/install
56 $(INSTALL_DIR
) $(1)/usr
/bin
57 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/znc
$(1)/usr
/bin
/
60 $(eval
$(call BuildPackage
,znc
))