2009-12-29 22:45:42 +00:00
|
|
|
#
|
2011-03-04 02:17:46 +00:00
|
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
2008-11-09 16:45:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lftp
|
2011-07-04 00:49:01 +00:00
|
|
|
PKG_VERSION:=4.3.1
|
2010-05-23 06:07:07 +00:00
|
|
|
PKG_RELEASE:=1
|
2008-11-09 16:45:18 +00:00
|
|
|
|
2011-03-10 09:10:07 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2009-12-29 22:45:42 +00:00
|
|
|
PKG_SOURCE_URL:=http://lftp.cybermirror.org \
|
|
|
|
http://lftp.cybermirror.org/old
|
2011-07-04 00:49:01 +00:00
|
|
|
PKG_MD5SUM:=ccef0f84416fc964b7b8a5e3f2e87631
|
2009-12-29 22:45:42 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2008-11-09 16:45:18 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/lftp
|
2011-03-12 05:50:28 +00:00
|
|
|
SUBMENU:=File Transfer
|
2008-11-09 16:45:18 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2009-11-23 22:11:38 +00:00
|
|
|
DEPENDS:=+libncurses +libopenssl +libreadline +uclibcxx +libexpat
|
2008-11-09 16:45:18 +00:00
|
|
|
TITLE:=lftp
|
|
|
|
URL:=http://lftp.yar.ru/
|
|
|
|
endef
|
|
|
|
|
2009-12-29 22:45:42 +00:00
|
|
|
define Package/lftp/description
|
|
|
|
lftp is sophisticated file transfer program with command line interface. It
|
|
|
|
supports FTP, HTTP, FISH, SFTP and FILE (local FS) protocols. GNU Readline
|
2011-03-04 02:17:46 +00:00
|
|
|
library is used for input. BitTorrent protocol is supported as built-in
|
|
|
|
`torrent' command.
|
2009-12-29 22:45:42 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-09 16:45:18 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-libiconv-prefix \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-gnutls \
|
|
|
|
--without-libresolv \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
2009-12-29 22:45:42 +00:00
|
|
|
--disable-static
|
2008-11-09 16:45:18 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
2010-12-21 04:39:46 +00:00
|
|
|
CXX="$(STAGING_DIR)/host/bin/g++-uc" \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -I$(STAGING_DIR)/usr/include/uClibc++ -nostdinc++" \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS" \
|
2011-02-22 14:50:48 +00:00
|
|
|
LIBS="-nodefaultlibs -lz -lutil -lc -luClibc++ -lcurses $(LIBGCC_S) -ldl" \
|
2010-12-21 04:39:46 +00:00
|
|
|
i_cv_posix_fallocate_works=no
|
2008-11-09 16:45:18 +00:00
|
|
|
|
2009-12-29 22:45:42 +00:00
|
|
|
MAKE_VARS += \
|
2011-05-15 08:24:28 +00:00
|
|
|
LD="\$$$$(CC)"
|
2008-11-09 16:45:18 +00:00
|
|
|
|
2009-12-29 22:45:42 +00:00
|
|
|
define Package/lftp/install
|
2009-11-23 22:11:38 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-05-23 06:07:07 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin/
|
2009-12-29 22:45:42 +00:00
|
|
|
endef
|
2008-11-09 16:45:18 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,lftp))
|