2013-08-30 16:09:44 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libssh2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-11 15:09:51 +01:00
|
|
|
LIBSSH2_VERSION = 1.5.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
|
|
|
|
|
|
|
# libssh2 must use either libgcrypt or OpenSSL
|
|
|
|
# Only select openssl if libgcrypt is not selected
|
|
|
|
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
|
|
|
|
LIBSSH2_CONF_ENV += LIBS="$(shell $(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))
|