2008-11-09 16:45:18 +00:00
|
|
|
#
|
2009-11-23 22:11:38 +00:00
|
|
|
# Copyright (C) 2008-2009 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
|
2009-11-23 22:11:38 +00:00
|
|
|
PKG_VERSION:=4.0.3
|
2008-11-09 16:45:18 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-03-11 10:34:55 +00:00
|
|
|
PKG_SOURCE_URL:=http://lftp.cybermirror.org/old/
|
2009-11-23 22:11:38 +00:00
|
|
|
PKG_MD5SUM:=24f4b25718fef09cbc4d26ea73bd1578
|
2008-11-09 16:45:18 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/lftp
|
|
|
|
SUBMENU:=FTP
|
|
|
|
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
|
|
|
|
|
|
|
|
# uses GNU configure
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-libiconv-prefix \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-gnutls \
|
|
|
|
--without-libresolv \
|
|
|
|
--with-openssl="$(STAGING_DIR)/usr" \
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -I$(STAGING_DIR)/usr/include/uClibc++ -nostdinc++" \
|
|
|
|
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
|
|
|
|
LDFLAGS="$$$$LDFLAGS" \
|
2009-01-06 16:16:47 +00:00
|
|
|
LIBS="-nodefaultlibs -lz -lutil -luClibc++ -lcurses -lgcc $(LIBGCC_S) -ldl" \
|
2008-11-09 16:45:18 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
LD="\$$$$(CC)" \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lftp/install
|
2009-11-23 22:11:38 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2008-11-09 16:45:18 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-11-23 22:11:38 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lftp $(1)/usr/bin
|
2008-11-09 16:45:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lftp/postinst
|
|
|
|
# check for real system
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
if [ ! -e $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6 ]; then
|
|
|
|
ln -s $${IPKG_INSTROOT}/usr/lib/libuClibc++.so.0 $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lftp/postrm
|
|
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
if [ -L $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6 ]; then
|
|
|
|
rm $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,lftp))
|