@ -29,7 +29,7 @@ define Package/libssh2
CATEGORY:= Libraries
TITLE:= SSH2 library
URL:= https://www.libssh2.org/
DEPENDS:= +libmbedtls +zlib
DEPENDS:= +LIBSSH2_MBEDTLS: libmbedtls +LIBSSH2_OPENSSL:libopenssl +zlib
MAINTAINER:= Jiri Slachta <jiri@slachta.eu>
e n d e f
@ -37,13 +37,17 @@ define Package/libssh2/description
libssh2 is a client-side C library implementing the SSH2 protocol.
e n d e f
d e f i n e P a c k a g e / l i b s s h 2 / c o n f i g
source " $( SOURCE) /Config.in "
e n d e f
TARGET_CFLAGS += $( FPIC)
CONFIGURE_ARGS += \
--disable-examples-build \
--disable-silent-rules \
--with-mbedtls \
--with-libmbed tls-prefix= $( STAGING_DIR) /usr \
$( if $( CONFIG_LIBSSH2_MBEDTLS) , --with-mbedtls --with-libmbedtls-prefix= $( STAGING_DIR) /usr) \
$( if $( CONFIG_LIBSSH2_OPENSSL) , --with-openss l --w ith- lib ssl -prefix= $( STAGING_DIR) /usr) \
--with-libz-prefix= $( STAGING_DIR) /usr
d e f i n e B u i l d / I n s t a l l D e v