2013-08-30 16:09:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libssh2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-02-24 13:01:44 +01:00
|
|
|
LIBSSH2_VERSION = 1.7.0
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBSSH2_SITE = http://www.libssh2.org/download
|
2013-08-30 16:09:44 +02:00
|
|
|
LIBSSH2_LICENSE = BSD
|
|
|
|
LIBSSH2_LICENSE_FILES = COPYING
|
|
|
|
LIBSSH2_INSTALL_STAGING = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBSSH2_CONF_OPTS = --disable-examples-build
|
2013-08-30 16:09:44 +02:00
|
|
|
|
2016-09-08 23:11:48 +02:00
|
|
|
# Dependency is either on libgcrypt or openssl, guaranteed in Config.in.
|
|
|
|
# Favour libgcrypt.
|
2013-08-30 16:09:44 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
|
|
LIBSSH2_DEPENDENCIES += libgcrypt
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBSSH2_CONF_OPTS += --with-libgcrypt \
|
2013-09-26 15:59:34 +02:00
|
|
|
--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--without-openssl
|
2014-11-18 15:31:33 +01:00
|
|
|
# configure.ac forgets to link to dependent libraries of gcrypt breaking static
|
|
|
|
# linking
|
2015-07-12 16:35:26 +02:00
|
|
|
LIBSSH2_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/libgcrypt-config --libs`"
|
2013-08-30 16:09:44 +02:00
|
|
|
else
|
|
|
|
LIBSSH2_DEPENDENCIES += openssl
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBSSH2_CONF_OPTS += --with-openssl \
|
2013-09-26 15:59:34 +02:00
|
|
|
--with-libssl-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--without-libgcrypt
|
2013-08-30 16:09:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Add zlib support if enabled
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
LIBSSH2_DEPENDENCIES += zlib
|
2015-02-14 18:38:28 +01:00
|
|
|
LIBSSH2_CONF_OPTS += --with-libz \
|
|
|
|
--with-libz-prefix=$(STAGING_DIR)/usr
|
2013-08-30 16:09:44 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBSSH2_CONF_OPTS += --without-libz
|
2013-08-30 16:09:44 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|