blob: c7e9c3320c1ecc5b9acb182cb5a7b7b9bbf95ba3 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Multiplatform C library implementing the SSHv2 and SSHv1 protocol"
2HOMEPAGE = "http://www.libssh.org"
3SECTION = "libs"
Andrew Geissler9aee5002022-03-30 16:27:02 +00004LICENSE = "LGPL-2.1-only"
Andrew Geissler82c905d2020-04-13 13:39:40 -05005LIC_FILES_CHKSUM = "file://COPYING;md5=dabb4958b830e5df11d2b0ed8ea255a0"
6
Andrew Geissler32b11992021-03-31 13:37:05 -05007DEPENDS = "zlib openssl"
Andrew Geissler82c905d2020-04-13 13:39:40 -05008
Andrew Geissler595f6302022-01-24 19:11:47 +00009SRC_URI = "git://git.libssh.org/projects/libssh.git;protocol=https;branch=stable-0.8"
Andrew Geissler82c905d2020-04-13 13:39:40 -050010SRCREV = "04685a74df9ce1db1bc116a83a0da78b4f4fa1f8"
11
12S = "${WORKDIR}/git"
13
14inherit cmake
15
Andrew Geissler32b11992021-03-31 13:37:05 -050016PACKAGECONFIG ??= "gcrypt"
Andrew Geissler82c905d2020-04-13 13:39:40 -050017PACKAGECONFIG[gssapi] = "-DWITH_GSSAPI=1, -DWITH_GSSAPI=0, krb5, "
Andrew Geissler32b11992021-03-31 13:37:05 -050018PACKAGECONFIG[gcrypt] = "-DWITH_GCRYPT=1, -DWITH_GCRYPT=0, libgcrypt, "
Andrew Geissler82c905d2020-04-13 13:39:40 -050019
Patrick Williams213cb262021-08-07 19:21:33 -050020ARM_INSTRUCTION_SET:armv5 = "arm"
Andrew Geissler82c905d2020-04-13 13:39:40 -050021
22EXTRA_OECMAKE = " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 -DWITH_PCAP=1 \
24 -DWITH_SFTP=1 \
25 -DWITH_ZLIB=1 \
26 -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
27 "
28
Patrick Williams213cb262021-08-07 19:21:33 -050029do_configure:prepend () {
Andrew Geissler82c905d2020-04-13 13:39:40 -050030 # Disable building of examples
31 sed -i -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' ${S}/CMakeLists.txt \
32 || bbfatal "Failed to disable examples"
33}
34
35TOOLCHAIN = "gcc"
Andrew Geissler595f6302022-01-24 19:11:47 +000036
37BBCLASSEXTEND = "native nativesdk"