[packages] asterisk-1.6.6: added app_alarmreceiver,app_setcallerid and app_verbose
[openwrt/svn-archive/archive.git] / net / lftp / Makefile
1 #
2 # Copyright (C) 2008-2010 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.0.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://lftp.cybermirror.org \
16 http://lftp.cybermirror.org/old
17 PKG_MD5SUM:=d3f0cd7569e31e50370208dd77a7c41b
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lftp
24 SUBMENU:=FTP
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libncurses +libopenssl +libreadline +uclibcxx +libexpat
28 TITLE:=lftp
29 URL:=http://lftp.yar.ru/
30 endef
31
32 define Package/lftp/description
33 lftp is sophisticated file transfer program with command line interface. It
34 supports FTP, HTTP, FISH, SFTP and FILE (local FS) protocols. GNU Readline
35 library is used for input.
36 endef
37
38 # uses GNU configure
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 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -I$(STAGING_DIR)/usr/include/uClibc++ -nostdinc++" \
50 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
51 LDFLAGS="$$$$LDFLAGS" \
52 LIBS="-nodefaultlibs -lz -lutil -luClibc++ -lcurses $(LIBGCC_S) -ldl" \
53
54 MAKE_VARS += \
55 LD="\$$$$(CC)" \
56
57 define Package/lftp/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lftp $(1)/usr/bin/
61 endef
62
63 define Package/lftp/postinst
64 # check for real system
65 if [ -z "$${IPKG_INSTROOT}" ]; then
66 if [ ! -e $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6 ]; then
67 ln -s $${IPKG_INSTROOT}/usr/lib/libuClibc++.so.0 $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6
68 fi
69 fi
70
71 endef
72
73 define Package/lftp/postrm
74 if [ -z "$${IPKG_INSTROOT}" ]; then
75 if [ -L $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6 ]; then
76 rm $${IPKG_INSTROOT}/usr/lib/libstdc\+\+.so.6
77 fi
78 fi
79
80 endef
81
82 $(eval $(call BuildPackage,lftp))