sysklogd: fix build on musl
[buildroot-gz.git] / package / libssh / libssh.mk
blob429e3c17c853e61e3473e7ee09afaca29b83f5d7
1 ################################################################################
3 # libssh
5 ################################################################################
7 LIBSSH_VERSION = 0.7.3
8 LIBSSH_SOURCE = libssh-$(LIBSSH_VERSION).tar.xz
9 LIBSSH_SITE = https://red.libssh.org/attachments/download/195
10 LIBSSH_LICENSE = LGPLv2.1
11 LIBSSH_LICENSE_FILES = COPYING
12 LIBSSH_INSTALL_STAGING = YES
13 LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO
14 LIBSSH_CONF_OPTS = \
15 -DWITH_STACK_PROTECTOR=OFF \
16 -DWITH_SERVER=OFF \
17 -DWITH_EXAMPLES=OFF
19 ifeq ($(BR2_PACKAGE_ZLIB),y)
20 LIBSSH_CONF_OPTS += -DWITH_ZLIB=ON
21 LIBSSH_DEPENDENCIES += zlib
22 else
23 LIBSSH_CONF_OPTS += -DWITH_ZLIB=OFF
24 endif
26 # Dependency is either on libgcrypt or openssl, guaranteed in Config.in.
27 # Favour libgcrypt.
28 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
29 LIBSSH_CONF_OPTS += -DWITH_GCRYPT=ON
30 LIBSSH_DEPENDENCIES += libgcrypt
31 else
32 LIBSSH_CONF_OPTS += -DWITH_GCRYPT=OFF
33 LIBSSH_DEPENDENCIES += openssl
34 endif
36 $(eval $(cmake-package))