1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# lftp 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLFTP_VERSION = 4.9.2 8*4882a593SmuzhiyunLFTP_SOURCE = lftp-$(LFTP_VERSION).tar.xz 9*4882a593SmuzhiyunLFTP_SITE = http://lftp.yar.ru/ftp 10*4882a593SmuzhiyunLFTP_LICENSE = GPL-3.0+ 11*4882a593SmuzhiyunLFTP_LICENSE_FILES = COPYING 12*4882a593SmuzhiyunLFTP_CPE_ID_VENDOR = lftp_project 13*4882a593SmuzhiyunLFTP_DEPENDENCIES = readline zlib host-pkgconf 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun# Help lftp finding readline and zlib 16*4882a593SmuzhiyunLFTP_CONF_OPTS = \ 17*4882a593Smuzhiyun --with-readline=$(STAGING_DIR)/usr \ 18*4882a593Smuzhiyun --with-readline-lib="`$(PKG_CONFIG_HOST_BINARY) --libs readline`" \ 19*4882a593Smuzhiyun --with-zlib=$(STAGING_DIR)/usr 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunifneq ($(BR2_STATIC_LIBS),y) 22*4882a593SmuzhiyunLFTP_CONF_OPTS += --with-modules 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_EXPAT)$(BR2_PACKAGE_LFTP_PROTO_HTTP),yy) 26*4882a593SmuzhiyunLFTP_DEPENDENCIES += expat 27*4882a593SmuzhiyunLFTP_CONF_OPTS += --with-expat=$(STAGING_DIR)/usr 28*4882a593Smuzhiyunelse 29*4882a593SmuzhiyunLFTP_CONF_OPTS += --without-expat 30*4882a593Smuzhiyunendif 31*4882a593Smuzhiyun 32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GNUTLS),y) 33*4882a593SmuzhiyunLFTP_DEPENDENCIES += gnutls 34*4882a593SmuzhiyunLFTP_CONF_OPTS += --with-gnutls 35*4882a593Smuzhiyunelse 36*4882a593SmuzhiyunLFTP_CONF_OPTS += --without-gnutls 37*4882a593Smuzhiyunendif 38*4882a593Smuzhiyun 39*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y) 40*4882a593SmuzhiyunLFTP_DEPENDENCIES += openssl 41*4882a593SmuzhiyunLFTP_CONF_OPTS += --with-openssl 42*4882a593Smuzhiyunelse 43*4882a593SmuzhiyunLFTP_CONF_OPTS += --without-openssl 44*4882a593Smuzhiyunendif 45*4882a593Smuzhiyun 46*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBIDN2),y) 47*4882a593SmuzhiyunLFTP_DEPENDENCIES += libidn2 48*4882a593SmuzhiyunLFTP_CONF_OPTS += --with-libidn2=$(STAGING_DIR)/usr 49*4882a593Smuzhiyunelse 50*4882a593SmuzhiyunLFTP_CONF_OPTS += --without-libidn2 51*4882a593Smuzhiyunendif 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun# Remove /usr/share/lftp 54*4882a593Smuzhiyundefine LFTP_REMOVE_DATA 55*4882a593Smuzhiyun $(RM) -fr $(TARGET_DIR)/usr/share/lftp 56*4882a593Smuzhiyunendef 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunLFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_DATA 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun# Optional commands and protocols 61*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_MIRROR) += cmd-mirror.so 62*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_SLEEP) += cmd-sleep.so 63*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_TORRENT) += cmd-torrent.so 64*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FISH) += proto-fish.so 65*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FTP) += proto-ftp.so 66*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_HTTP) += proto-http.so 67*4882a593SmuzhiyunLFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_SFTP) += proto-sftp.so 68*4882a593Smuzhiyun 69*4882a593Smuzhiyundefine LFTP_REMOVE_MODULES 70*4882a593Smuzhiyun for f in $(LFTP_MODULES_TO_REMOVE-) ; do \ 71*4882a593Smuzhiyun $(RM) -f $(TARGET_DIR)/usr/lib/lftp/$(LFTP_VERSION)/$$f ; \ 72*4882a593Smuzhiyun done 73*4882a593Smuzhiyunendef 74*4882a593Smuzhiyun 75*4882a593SmuzhiyunLFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_MODULES 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun$(eval $(autotools-package)) 78