2 # Copyright (C) 2008-2011 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.xz
15 PKG_SOURCE_URL
:=http
://lftp.cybermirror.org \
16 http
://lftp.cybermirror.org
/old
17 PKG_MD5SUM
:=7815af15e05472ac3ffbd5699ab842d4
21 include $(INCLUDE_DIR
)/package.mk
24 SUBMENU
:=File Transfer
27 DEPENDS
:=+libncurses
+libopenssl
+libreadline
+uclibcxx
+libexpat
29 URL
:=http
://lftp.yar.ru
/
32 define 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
40 --without-libiconv-prefix \
41 --without-libintl-prefix \
44 --with-openssl="$(STAGING_DIR)/usr" \
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 -lz -lutil -lc -luClibc++ -lcurses $(LIBGCC_S) -ldl" \
53 i_cv_posix_fallocate_works=no
58 define Package/lftp/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin/
63 $(eval $(call BuildPackage,lftp))