Skip to content

Commit 1ce8bbe

Browse files
committedAug 13, 2015
conda: add recipe for libssh2 package
1 parent f2911d6 commit 1ce8bbe

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
 

Diff for: ‎conda/libssh2/bld.bat

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
mkdir build
2+
cd build
3+
REM Configure step
4+
if "%ARCH%"=="32" (
5+
set CMAKE_GENERATOR=Visual Studio 12 2013
6+
) else (
7+
set CMAKE_GENERATOR=Visual Studio 12 2013 Win64
8+
)
9+
set CMAKE_GENERATOR_TOOLSET=v120_xp
10+
cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%PREFIX% -DOPENSSL_ROOT_DIR=%PREFIX%\Library\ %SRC_DIR%
11+
if errorlevel 1 exit 1
12+
REM Build step
13+
cmake --build .
14+
if errorlevel 1 exit 1
15+
REM Install step
16+
cmake --build . --target install
17+
if errorlevel 1 exit 1

Diff for: ‎conda/libssh2/build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
mkdir build
4+
cd build
5+
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DOPENSSL_ROOT_DIR=$PREFIX
6+
make -j2
7+
make install

Diff for: ‎conda/libssh2/meta.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package:
2+
name: libssh2
3+
version: 1.6.0
4+
5+
source:
6+
git_url: https://github.com/libssh2/libssh2
7+
git_tag: libssh2-1.6.0
8+
9+
build:
10+
number: 0
11+
12+
requirements:
13+
build:
14+
- system # [linux]
15+
- cmake # [linux]
16+
- openssl
17+
run:
18+
- openssl
19+
20+
about:
21+
home: http://www.libssh2.org/
22+
license: BSD
23+
summary: 'libssh2 is a client-side C library implementing the SSH2 protocol'

0 commit comments

Comments
 (0)
Please sign in to comment.