miniupnpd: update v1.8.20130426 (#12997)
[openwrt/svn-archive/archive.git] / net / lftp / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lftp
11 PKG_VERSION:=4.3.6
12 PKG_RELEASE:=2
13
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:=ffcdbaec5d1416cb6dd754efd43fa61a
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/uclibc++.mk
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/lftp
25 SUBMENU:=File Transfer
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libncurses +libopenssl +libreadline $(CXX_DEPENDS) +libexpat
29 TITLE:=Sophisticated file transfer program
30 URL:=http://lftp.yar.ru/
31 endef
32
33 define Package/lftp/description
34 lftp is sophisticated file transfer program with command line interface. It
35 supports FTP, HTTP, FISH, SFTP and FILE (local FS) protocols. GNU Readline
36 library is used for input. BitTorrent protocol is supported as built-in
37 `torrent' command.
38 endef
39
40 CONFIGURE_ARGS += \
41 --without-libiconv-prefix \
42 --without-libintl-prefix \
43 --without-gnutls \
44 --without-libresolv \
45 --with-openssl="$(STAGING_DIR)/usr" \
46 --disable-static
47
48 CONFIGURE_VARS += \
49 LIBS="-lz -lutil -lcurses -ldl" \
50 i_cv_posix_fallocate_works=no
51
52 MAKE_VARS += \
53 LD="$(TARGET_CXX)"
54
55 define Package/lftp/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,lftp))