1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= c517c4f4f9c39bd415d7313088a2b1e313b2d386867fe40b7692b83a20f0670d
10 PKG_DESCR
:= ftp and http client
11 PKG_SECTION
:= net
/http
12 PKG_DEPENDS
:= libncurses libexpat
13 PKG_DEPENDS
+= zlib libreadline
14 PKG_BUILDDEP
:= ncurses expat readline zlib
16 PKG_URL
:= http
://lftp.yar.ru
/
17 PKG_SITES
:= http
://lftp.yar.ru
/ftp
/
19 PKG_CHOICES_LFTP
:= WITH_LIBRESSL WITH_GNUTLS WITHOUT_SSL
20 PKGCD_WITH_LIBRESSL
:= use libressl for crypto
21 PKGCS_WITH_LIBRESSL
:= libressl ca-certificates
22 PKGCB_WITH_LIBRESSL
:= libressl
23 PKGCD_WITH_GNUTLS
:= use gnutls for crypto
24 PKGCS_WITH_GNUTLS
:= libgnutls ca-certificates
25 PKGCB_WITH_GNUTLS
:= gnutls
26 PKGCD_WITHOUT_SSL
:= use no ssl
28 include $(ADK_TOPDIR
)/mk
/package.mk
30 $(eval
$(call PKG_template
,LFTP
,lftp
,$(PKG_VERSION
)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
32 CONFIGURE_ARGS
+= --with-readline
="$(STAGING_TARGET_DIR)/usr" \
33 --with-zlib
="$(STAGING_TARGET_DIR)/usr" \
34 --with-expat
="$(STAGING_TARGET_DIR)/usr"
36 ifeq (${ADK_PACKAGE_LFTP_WITHOUT_SSL},y
)
37 CONFIGURE_ARGS
+= --without-openssl \
40 ifeq (${ADK_PACKAGE_LFTP_WITH_GNUTLS},y
)
41 CONFIGURE_ARGS
+= --without-openssl \
44 ifeq (${ADK_PACKAGE_LFTP_WITH_LIBRESSL},y
)
45 CONFIGURE_ARGS
+= --with-openssl
="$(STAGING_TARGET_DIR)/usr" \
50 $(INSTALL_DIR
) $(IDIR_LFTP
)/usr
/bin
51 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/lftp \
54 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk