From 03bb941fe8744abf59ddbbc541a602f40f8aae25 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 14 May 2013 15:13:08 +0200 Subject: [PATCH] libssh2: cross build support. --- srcpkgs/libssh2/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/libssh2/template b/srcpkgs/libssh2/template index 4e0b1effea..eb676ddec6 100644 --- a/srcpkgs/libssh2/template +++ b/srcpkgs/libssh2/template @@ -1,7 +1,7 @@ # Template file for 'libssh2' pkgname=libssh2 version=1.4.3 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-static" makedepends="openssl-devel" @@ -16,9 +16,13 @@ long_desc=" regular terminal, SCP and SFTP sessions; port forwarding; password, key-based and keyboard-interactive authentication." +if [ "$CROSS_BUILD" ]; then + configure_args+=" --with-libssl-prefix=$XBPS_CROSS_BASE" +fi + libssh2-devel_package() { depends="${sourcepkg}>=${version}" - short_desc="${short_desc} -- development files" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig @@ -28,6 +32,6 @@ libssh2-devel_package() { libssh2_package() { pkg_install() { - vmove usr + vmove all } }