package/lftp: Add optional support for libidn

Signed-off-by: Mario Lang <mlang@blind.guru>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Mario Lang 2017-11-28 13:10:12 +01:00 committed by Thomas Petazzoni
parent 832b2de3ba
commit 86ad37b948

View File

@ -41,6 +41,13 @@ else
LFTP_CONF_OPTS += --without-openssl
endif
ifeq ($(BR2_PACKAGE_LIBIDN),y)
LFTP_DEPENDENCIES += libidn
LFTP_CONF_OPTS += --with-libidn=$(STAGING_DIR)/usr
else
LFTP_CONF_OPTS += --without-libidn
endif
# Remove /usr/share/lftp
define LFTP_REMOVE_DATA
$(RM) -fr $(TARGET_DIR)/usr/share/lftp