package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / lftp / lftp.mk
blobd2d58fd91d6f76e1a4beb4e022953f0881c090ae
1 ################################################################################
3 # lftp
5 ################################################################################
7 LFTP_VERSION = 4.6.4
8 LFTP_SOURCE = lftp-$(LFTP_VERSION).tar.xz
9 LFTP_SITE = http://lftp.yar.ru/ftp
10 LFTP_LICENSE = GPLv3+
11 LFTP_LICENSE_FILES = COPYING
12 # Needed so that our libtool patch applies properly
13 LFTP_AUTORECONF = YES
14 LFTP_DEPENDENCIES = readline zlib host-pkgconf
16 ifneq ($(BR2_STATIC_LIBS),y)
17 LFTP_CONF_OPTS += --with-modules
18 endif
20 ifeq ($(BR2_PACKAGE_GNUTLS),y)
21 LFTP_DEPENDENCIES += gnutls
22 LFTP_CONF_OPTS += --with-gnutls
23 else
24 LFTP_CONF_OPTS += --without-gnutls
25 endif
27 ifeq ($(BR2_PACKAGE_OPENSSL),y)
28 LFTP_DEPENDENCIES += openssl
29 LFTP_CONF_OPTS += --with-openssl
30 else
31 LFTP_CONF_OPTS += --without-openssl
32 endif
34 # Remove /usr/share/lftp
35 define LFTP_REMOVE_DATA
36 $(RM) -fr $(TARGET_DIR)/usr/share/lftp
37 endef
39 LFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_DATA
41 # Optional commands and protocols
42 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_MIRROR) += cmd-mirror.so
43 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_SLEEP) += cmd-sleep.so
44 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_CMD_TORRENT) += cmd-torrent.so
45 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FISH) += proto-fish.so
46 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_FTP) += proto-ftp.so
47 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_HTTP) += proto-http.so
48 LFTP_MODULES_TO_REMOVE-$(BR2_PACKAGE_LFTP_PROTO_SFTP) += proto-sftp.so
50 define LFTP_REMOVE_MODULES
51 for f in $(LFTP_MODULES_TO_REMOVE-) ; do \
52 $(RM) -f $(TARGET_DIR)/usr/lib/lftp/$(LFTP_VERSION)/$$f ; \
53 done
54 endef
56 LFTP_POST_INSTALL_TARGET_HOOKS += LFTP_REMOVE_MODULES
58 $(eval $(autotools-package))