1 ################################################################################
5 ################################################################################
8 LFTP_SOURCE
= lftp-
$(LFTP_VERSION
).
tar.xz
9 LFTP_SITE
= http
://lftp.yar.ru
/ftp
11 LFTP_LICENSE_FILES
= COPYING
12 # Needed so that our libtool patch applies properly
14 LFTP_DEPENDENCIES
= readline zlib host-pkgconf
16 ifneq ($(BR2_STATIC_LIBS
),y
)
17 LFTP_CONF_OPTS
+= --with-modules
20 ifeq ($(BR2_PACKAGE_GNUTLS
),y
)
21 LFTP_DEPENDENCIES
+= gnutls
22 LFTP_CONF_OPTS
+= --with-gnutls
24 LFTP_CONF_OPTS
+= --without-gnutls
27 ifeq ($(BR2_PACKAGE_OPENSSL
),y
)
28 LFTP_DEPENDENCIES
+= openssl
29 LFTP_CONF_OPTS
+= --with-openssl
31 LFTP_CONF_OPTS
+= --without-openssl
34 # Remove /usr/share/lftp
35 define LFTP_REMOVE_DATA
36 $(RM
) -fr
$(TARGET_DIR
)/usr
/share
/lftp
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 ; \
56 LFTP_POST_INSTALL_TARGET_HOOKS
+= LFTP_REMOVE_MODULES
58 $(eval
$(autotools-package
))