2009-05-17 16:09:36 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
PKG_NAME:=znc
|
2009-07-18 14:09:42 +00:00
|
|
|
PKG_VERSION:=0.070
|
2009-07-26 11:57:29 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/znc
|
2009-07-18 14:09:42 +00:00
|
|
|
PKG_MD5SUM:=18bb813cb350c6db014a0d82ecdf85fe
|
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
define Package/znc
|
|
|
|
SUBMENU:=Instant Messaging
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-07-18 00:01:59 +00:00
|
|
|
DEPENDS:=+libopenssl +uclibcxx
|
2009-05-17 16:09:36 +00:00
|
|
|
TITLE:=ZNC
|
|
|
|
URL:=http://en.znc.in/
|
|
|
|
endef
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
define Package/znc/description
|
2009-07-18 14:09:42 +00:00
|
|
|
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 support to name a few.
|
2009-05-17 16:09:36 +00:00
|
|
|
endef
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
CONFIGURE_VARS += \
|
2009-07-18 14:09:42 +00:00
|
|
|
CXX="$(TARGET_CROSS)-g++-uc"
|
2009-05-17 16:09:36 +00:00
|
|
|
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|
|
|
LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
|
|
|
|
LIBS="-luClibc++ -lc -lm -lgcc -lssl"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
--disable-perl \
|
|
|
|
|
2009-07-18 14:09:42 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CXX="g++-uc"
|
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,)
|
|
|
|
$(call libtool_disable_rpath)
|
|
|
|
endef
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,)
|
|
|
|
endef
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
define Package/znc/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/znc $(1)/usr/bin/
|
|
|
|
endef
|
2009-07-18 14:09:42 +00:00
|
|
|
|
2009-05-17 16:09:36 +00:00
|
|
|
$(eval $(call BuildPackage,znc))
|