2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="libssh"
|
2023-03-01 00:58:37 +00:00
|
|
|
PKG_VERSION="0.10.4"
|
|
|
|
PKG_SHA256="07392c54ab61476288d1c1f0a7c557b50211797ad00c34c3af2bbc4dbc4bd97d"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="LGPL"
|
|
|
|
PKG_SITE="http://www.libssh.org/"
|
2022-04-14 11:56:57 +00:00
|
|
|
PKG_URL="https://www.libssh.org/files/$(get_pkg_version_maj_min)/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain zlib openssl"
|
|
|
|
PKG_LONGDESC="Library for accessing ssh client services through C libraries."
|
|
|
|
|
2022-04-14 11:56:57 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET="-DBUILD_SHARED_LIBS=OFF \
|
2022-02-05 14:23:32 +00:00
|
|
|
-DWITH_SERVER=OFF \
|
|
|
|
-DWITH_GCRYPT=OFF \
|
2023-03-01 00:58:37 +00:00
|
|
|
-DWITH_EXAMPLES=OFF \
|
2022-02-05 14:23:32 +00:00
|
|
|
-DWITH_GSSAPI=OFF \
|
2022-04-14 11:56:57 +00:00
|
|
|
-DWITH_GEX=OFF \
|
2022-02-05 14:23:32 +00:00
|
|
|
-DWITH_INTERNAL_DOC=OFF"
|
|
|
|
|
|
|
|
makeinstall_target() {
|
|
|
|
# install static library only
|
2022-04-14 11:56:57 +00:00
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib
|
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/src/libssh.a ${SYSROOT_PREFIX}/usr/lib
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-14 11:56:57 +00:00
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
|
|
|
cp ${PKG_BUILD}/.${TARGET_NAME}/libssh.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-14 11:56:57 +00:00
|
|
|
mkdir -p ${SYSROOT_PREFIX}/usr/include/libssh
|
|
|
|
cp ${PKG_BUILD}/include/libssh/{callbacks.h,legacy.h,libssh.h,server.h,sftp.h,ssh2.h} \
|
|
|
|
${PKG_BUILD}/.${TARGET_NAME}/include/libssh/libssh_version.h \
|
|
|
|
${SYSROOT_PREFIX}/usr/include/libssh
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|