summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2020-06-02 12:10:33 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-06-03 08:46:47 +0100
commit9814ccc293823c00e277393316738de1c732dbbe (patch)
tree5b75cff0cafc6ff90aae9af659f246d40ad9054c
parent57d9e157696774484e007dcf53f59b83fd8206e7 (diff)
downloadmidipix_build-9814ccc293823c00e277393316738de1c732dbbe.tar.bz2
midipix_build-9814ccc293823c00e277393316738de1c732dbbe.tar.xz
groups/251.native_packages_lib.group: adds libssh v0.9.4
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
-rw-r--r--groups/251.native_packages_lib.group6
-rw-r--r--vars/libssh.vars27
2 files changed, 32 insertions, 1 deletions
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