From 1ce8bbe3ae798cfb992e91550f507a484e3471e3 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Thu, 13 Aug 2015 18:50:13 +0200 Subject: [PATCH] conda: add recipe for libssh2 package --- conda/libssh2/bld.bat | 17 +++++++++++++++++ conda/libssh2/build.sh | 7 +++++++ conda/libssh2/meta.yaml | 23 +++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 conda/libssh2/bld.bat create mode 100644 conda/libssh2/build.sh create mode 100644 conda/libssh2/meta.yaml diff --git a/conda/libssh2/bld.bat b/conda/libssh2/bld.bat new file mode 100644 index 000000000..636211e40 --- /dev/null +++ b/conda/libssh2/bld.bat @@ -0,0 +1,17 @@ +mkdir build +cd build +REM Configure step +if "%ARCH%"=="32" ( +set CMAKE_GENERATOR=Visual Studio 12 2013 +) else ( +set CMAKE_GENERATOR=Visual Studio 12 2013 Win64 +) +set CMAKE_GENERATOR_TOOLSET=v120_xp +cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%PREFIX% -DOPENSSL_ROOT_DIR=%PREFIX%\Library\ %SRC_DIR% +if errorlevel 1 exit 1 +REM Build step +cmake --build . +if errorlevel 1 exit 1 +REM Install step +cmake --build . --target install +if errorlevel 1 exit 1 \ No newline at end of file diff --git a/conda/libssh2/build.sh b/conda/libssh2/build.sh new file mode 100644 index 000000000..a604361f2 --- /dev/null +++ b/conda/libssh2/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +mkdir build +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DOPENSSL_ROOT_DIR=$PREFIX +make -j2 +make install diff --git a/conda/libssh2/meta.yaml b/conda/libssh2/meta.yaml new file mode 100644 index 000000000..9a65c8f5d --- /dev/null +++ b/conda/libssh2/meta.yaml @@ -0,0 +1,23 @@ +package: + name: libssh2 + version: 1.6.0 + +source: + git_url: https://github.com/libssh2/libssh2 + git_tag: libssh2-1.6.0 + +build: + number: 0 + +requirements: + build: + - system # [linux] + - cmake # [linux] + - openssl + run: + - openssl + +about: + home: http://www.libssh2.org/ + license: BSD + summary: 'libssh2 is a client-side C library implementing the SSH2 protocol'