2 # Copyright (C) 2009-2010 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
:=b1379bd6609353ebbc8df7ec19bd004f
20 include $(INCLUDE_DIR
)/package.mk
23 SUBMENU
:=Instant Messaging
26 DEPENDS
:=+libopenssl
+uclibcxx
28 URL
:=http
://en.znc.in
/
31 define Package
/znc
/description
32 ZNC is an IRC bouncer with many advanced features like detaching
,
33 multiple users
, per channel playback buffer
, SSL
, IPv6
, transparent DCC
34 bouncing
, and c
++ module support to name a few.
38 CXX
="$(STAGING_DIR)/host/bin/g++-uc"
39 CXXFLAGS
="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
40 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
41 LDFLAGS
="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
42 LIBS
="-luClibc++ -lm -lssl $(LIBGCC_S) -lc"
50 CXX
="$(STAGING_DIR)/host/bin/g++-uc"
52 define Build
/Configure
53 $(call Build
/Configure
/Default
,)
54 $(call libtool_disable_rpath
)
57 define Package
/znc
/install
58 $(INSTALL_DIR
) $(1)/usr
/bin
59 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/znc
$(1)/usr
/bin
/
62 $(eval
$(call BuildPackage
,znc
))