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
:=b1379bd6609353ebbc8df7ec19bd004f
18 include $(INCLUDE_DIR
)/package.mk
21 SUBMENU
:=Instant Messaging
24 DEPENDS
:=+libopenssl
+uclibcxx
26 URL
:=http
://en.znc.in
/
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.
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"
43 $(TARGET_CONFIGURE_OPTS
) \
51 define Build
/Configure
52 $(call Build
/Configure
/Default
,)
53 $(call libtool_disable_rpath
)
57 $(call Build
/Compile
/Default
,)
60 define Package
/znc
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
62 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/znc
$(1)/usr
/bin
/
65 $(eval
$(call BuildPackage
,znc
))