source: packages/net/lftp/Makefile @ 30530

Last change on this file since 30530 was 30530, checked in by cshore, 4 years ago

[packages] Mass Fix for GCC 4.6

nodefaultlibs now includes libc so we have to add it where we want it

File size: 1.7 KB
Line 
1#
2# Copyright (C) 2008-2012 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:=lftp
11PKG_VERSION:=4.3.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15PKG_SOURCE_URL:=http://lftp.cybermirror.org \
16  http://lftp.cybermirror.org/old
17PKG_MD5SUM:=fbbc296f8c8c73e4b38b2b3228bd94f5
18
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/lftp
24  SUBMENU:=File Transfer
25  SECTION:=net
26  CATEGORY:=Network
27  DEPENDS:=+libncurses +libopenssl +libreadline +uclibcxx +libexpat
28  TITLE:=Sophisticated file transfer program
29  URL:=http://lftp.yar.ru/
30endef
31
32define Package/lftp/description
33  lftp is sophisticated file transfer program with command line interface. It
34  supports FTP, HTTP, FISH, SFTP and FILE (local FS) protocols. GNU Readline
35  library is used for input. BitTorrent protocol is supported as built-in
36  `torrent' command.
37endef
38
39CONFIGURE_ARGS += \
40        --without-libiconv-prefix \
41        --without-libintl-prefix \
42        --without-gnutls \
43        --without-libresolv \
44        --with-openssl="$(STAGING_DIR)/usr" \
45        --disable-static
46
47CONFIGURE_VARS += \
48        CXX="$(STAGING_DIR)/host/bin/g++-uc" \
49        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -I$(STAGING_DIR)/usr/include/uClibc++ -nostdinc++" \
50        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
51        LDFLAGS="$$$$LDFLAGS" \
52        LIBS="-nodefaultlibs -lc -lz -lutil -lc -luClibc++ -lcurses $(LIBGCC_S) -ldl" \
53        i_cv_posix_fallocate_works=no
54
55MAKE_VARS += \
56        LD="\$$$$(CC)"
57
58define Package/lftp/install
59        $(INSTALL_DIR) $(1)/usr/bin
60        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin/
61endef
62
63$(eval $(call BuildPackage,lftp))
Note: See TracBrowser for help on using the repository browser.