2 # Copyright (C) 2008-2009 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://lftp.cybermirror.org \
17 http://lftp.cybermirror.org/old
18 PKG_MD5SUM:=5400cad5f91e131ac2ded7c24aea594c
22 include $(INCLUDE_DIR)/package.mk
28 DEPENDS:=+libncurses +libopenssl +libreadline +uclibcxx +libexpat
30 URL:=http://lftp.yar.ru/
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.
42 --without-libiconv-prefix \
43 --without-libintl-prefix \
46 --with-openssl="$(STAGING_DIR)/usr" \
50 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -I$(STAGING_DIR)/usr/include/uClibc++ -nostdinc++" \
51 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
52 LDFLAGS="$$$$LDFLAGS" \
53 LIBS="-nodefaultlibs -lz -lutil -luClibc++ -lcurses -lgcc $(LIBGCC_S) -ldl" \
58 define Package/lftp/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin
64 define Package/lftp/postinst
65 # check for real system
66 if [ -z "$${IPKG_INSTROOT}" ]; then
67 if [ ! -e $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6 ]; then
68 ln -s $${IPKG_INSTROOT}/usr/lib/libuClibc++.so.0 $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6
74 define Package/lftp/postrm
75 if [ -z "$${IPKG_INSTROOT}" ]; then
76 if [ -L $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6 ]; then
77 rm $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6
83 $(eval $(call BuildPackage,lftp))