2015-08-30 18:05:10 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
2015-09-28 23:27:22 +02:00
|
|
|
# libssh
|
2015-08-30 18:05:10 +02:00
|
|
|
#
|
2015-09-28 23:27:21 +02:00
|
|
|
################################################################################
|
2015-08-30 18:05:10 +02:00
|
|
|
|
2022-10-23 19:04:41 +02:00
|
|
|
LIBSSH_VERSION_MAJOR = 0.10
|
|
|
|
LIBSSH_VERSION = $(LIBSSH_VERSION_MAJOR).4
|
2015-08-30 18:05:10 +02:00
|
|
|
LIBSSH_SOURCE = libssh-$(LIBSSH_VERSION).tar.xz
|
2018-08-20 23:47:40 +02:00
|
|
|
LIBSSH_SITE = https://www.libssh.org/files/$(LIBSSH_VERSION_MAJOR)
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBSSH_LICENSE = LGPL-2.1
|
2015-08-30 18:05:10 +02:00
|
|
|
LIBSSH_LICENSE_FILES = COPYING
|
2021-01-21 14:36:36 +01:00
|
|
|
LIBSSH_CPE_ID_VENDOR = libssh
|
2015-08-30 18:05:10 +02:00
|
|
|
LIBSSH_INSTALL_STAGING = YES
|
|
|
|
LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
LIBSSH_CONF_OPTS = \
|
2015-09-28 23:27:23 +02:00
|
|
|
-DWITH_STACK_PROTECTOR=OFF \
|
|
|
|
-DWITH_EXAMPLES=OFF
|
2015-08-30 18:05:10 +02:00
|
|
|
|
2019-09-25 14:17:26 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH_SERVER),y)
|
|
|
|
LIBSSH_CONF_OPTS += -DWITH_SERVER=ON
|
|
|
|
else
|
|
|
|
LIBSSH_CONF_OPTS += -DWITH_SERVER=OFF
|
|
|
|
endif
|
|
|
|
|
2015-08-30 18:05:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
LIBSSH_CONF_OPTS += -DWITH_ZLIB=ON
|
|
|
|
LIBSSH_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
LIBSSH_CONF_OPTS += -DWITH_ZLIB=OFF
|
|
|
|
endif
|
|
|
|
|
2019-09-24 15:26:02 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH_MBEDTLS),y)
|
|
|
|
LIBSSH_CONF_OPTS += -DWITH_MBEDTLS=ON
|
|
|
|
LIBSSH_DEPENDENCIES += mbedtls
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBSSH_LIBGCRYPT),y)
|
2015-08-30 18:05:10 +02:00
|
|
|
LIBSSH_CONF_OPTS += -DWITH_GCRYPT=ON
|
|
|
|
LIBSSH_DEPENDENCIES += libgcrypt
|
2019-09-24 15:26:02 +02:00
|
|
|
else ifeq ($(BR2_PACKAGE_LIBSSH_OPENSSL),y)
|
2015-08-30 18:05:10 +02:00
|
|
|
LIBSSH_DEPENDENCIES += openssl
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|