packages/net/lftp/Makefile
cshore fc8c6d10f3 [packages] Mass Fix for GCC 4.6
nodefaultlibs now includes libc so we have to add it where we want it

git-svn-id: svn://svn.openwrt.org/openwrt/packages@30530 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-14 17:34:08 +00:00

64 lines
1.7 KiB
Makefile

#
# Copyright (C) 2008-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=lftp
PKG_VERSION:=4.3.4
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://lftp.cybermirror.org \
http://lftp.cybermirror.org/old
PKG_MD5SUM:=fbbc296f8c8c73e4b38b2b3228bd94f5
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/lftp
SUBMENU:=File Transfer
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libncurses +libopenssl +libreadline +uclibcxx +libexpat
TITLE:=Sophisticated file transfer program
URL:=http://lftp.yar.ru/
endef
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
library is used for input. BitTorrent protocol is supported as built-in
`torrent' command.
endef
CONFIGURE_ARGS += \
--without-libiconv-prefix \
--without-libintl-prefix \
--without-gnutls \
--without-libresolv \
--with-openssl="$(STAGING_DIR)/usr" \
--disable-static
CONFIGURE_VARS += \
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" \
LIBS="-nodefaultlibs -lc -lz -lutil -lc -luClibc++ -lcurses $(LIBGCC_S) -ldl" \
i_cv_posix_fallocate_works=no
MAKE_VARS += \
LD="\$$$$(CC)"
define Package/lftp/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin/
endef
$(eval $(call BuildPackage,lftp))