source: packages/net/znc/Makefile @ 22122

Last change on this file since 22122 was 22122, checked in by nico, 6 years ago

[packages] replace occurences of -lgcc with $(LIBGCC_S)

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=znc
11PKG_VERSION:=0.078
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/znc
16PKG_MD5SUM:=b1379bd6609353ebbc8df7ec19bd004f
17
18include $(INCLUDE_DIR)/package.mk
19
20define 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/
27endef
28
29define 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.
33endef
34
35CONFIGURE_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++ -lm -lssl $(LIBGCC_S) -lc"
41
42CONFIGURE_ARGS += \
43        $(TARGET_CONFIGURE_OPTS) \
44        --disable-c-ares \
45        --disable-modules \
46        --disable-perl \
47
48MAKE_FLAGS += \
49        CXX="g++-uc"
50
51define Build/Configure
52        $(call Build/Configure/Default,)
53        $(call libtool_disable_rpath)
54endef
55
56define Build/Compile
57        $(call Build/Compile/Default,)
58endef
59
60define Package/znc/install
61        $(INSTALL_DIR) $(1)/usr/bin
62        $(INSTALL_BIN) $(PKG_BUILD_DIR)/znc $(1)/usr/bin/
63endef
64
65$(eval $(call BuildPackage,znc))
Note: See TracBrowser for help on using the repository browser.