From 9814ccc293823c00e277393316738de1c732dbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Tue, 2 Jun 2020 12:10:33 +0200 Subject: groups/251.native_packages_lib.group: adds libssh v0.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucio Andrés Illanes Albornoz --- groups/251.native_packages_lib.group | 6 +++++- vars/libssh.vars | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 vars/libssh.vars diff --git a/groups/251.native_packages_lib.group b/groups/251.native_packages_lib.group index 3216a77a..17d4f6de 100644 --- a/groups/251.native_packages_lib.group +++ b/groups/251.native_packages_lib.group @@ -6,7 +6,7 @@ NATIVE_PACKAGES_PACKAGES="$(rtl_lconcat "${NATIVE_PACKAGES_PACKAGES}" " glib lame libarchive libasr libassuan libatomic_ops libdmtx libedit libeditline libelf libevent libfetch libffi libfirm libflac libgcrypt libgpg_error libjpeg_turbo libksba libnettle libogg libpcap libpipeline libpng -libreadline libredwg libressl libsasl2 libshine libsndfile libsolv libtasn1 +libreadline libredwg libressl libsasl2 libshine libsndfile libsolv libssh libtasn1 libtelnet libtheora libtirpc libudns libunistring libuv libvorbis libxml2 libxslt libz libzip")"; : ${PKG_GLIB_DEPENDS:="libffi libz pcre"}; @@ -159,6 +159,10 @@ libxslt libz libzip")"; : ${PKG_LIBSOLV_VERSION:=0.6.34}; : ${PKG_LIBSOLV_URL:=https://github.com/openSUSE/libsolv/archive/${PKG_LIBSOLV_VERSION}.tar.gz}; : ${PKG_LIBSOLV_SUBDIR:=libsolv-${PKG_LIBSOLV_VERSION}}; +: ${PKG_LIBSSH_SHA256SUM:=150897a569852ac05aac831dc417a7ba8e610c86ca2e0154a99c6ade2486226b}; +: ${PKG_LIBSSH_VERSION:=0.9.4}; +: ${PKG_LIBSSH_URL:=https://www.libssh.org/files/${PKG_LIBSSH_VERSION%.*}/libssh-${PKG_LIBSSH_VERSION}.tar.xz}; +: ${PKG_LIBSSH_SUBDIR:=libssh-${PKG_LIBSSH_VERSION}}; : ${PKG_LIBTASN1_SHA256SUM:=0e0fb0903839117cb6e3b56e68222771bebf22ad7fc2295a0ed7d576e8d4329d}; : ${PKG_LIBTASN1_VERSION:=4.16.0}; : ${PKG_LIBTASN1_URL:=https://ftp.gnu.org/gnu/libtasn1/libtasn1-${PKG_LIBTASN1_VERSION}.tar.gz}; diff --git a/vars/libssh.vars b/vars/libssh.vars new file mode 100644 index 00000000..58837728 --- /dev/null +++ b/vars/libssh.vars @@ -0,0 +1,27 @@ +# +# set +o errexit -o noglob -o nounset is assumed. +# + +pkg_libssh_configure() { + if ! rtl_fileop rm config.cache \ + || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \ + cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \ + -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \ + -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \ + -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \ + -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \ + -DCMAKE_INSTALL_PREFIX="" \ + -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \ + -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \ + -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.lib.a" \ + -DWITH_SYMBOL_VERSIONING=OFF \ + -DWITH_GCRYPT=ON \ + -DWITH_EXAMPLES=OFF \ + -DPKG_CONFIG_EXECUTABLE=${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config \ + "../libssh-${PKG_VERSION}"; then + return 1; + fi; +}; + +# vim:filetype=sh textwidth=0 -- cgit v1.2.3