diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-07-24 09:29:50 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-07-24 09:29:50 -0700 |
| commit | 3e92aa6ae461d0857e23b44a59fa14c11b0cf287 (patch) | |
| tree | 18991c850c652238dc88e7f1eca5d0e0f1c2980e /ports/libssh | |
| parent | 8097e2f3c29eb05f707ad86c712e8523cca9421f (diff) | |
| parent | fd550023b244c7f608a2f7ca6a0fa935c1c1632f (diff) | |
| download | vcpkg-3e92aa6ae461d0857e23b44a59fa14c11b0cf287.tar.gz vcpkg-3e92aa6ae461d0857e23b44a59fa14c11b0cf287.zip | |
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Diffstat (limited to 'ports/libssh')
| -rw-r--r-- | ports/libssh/CONTROL | 4 | ||||
| -rw-r--r-- | ports/libssh/portfile.cmake | 34 |
2 files changed, 38 insertions, 0 deletions
diff --git a/ports/libssh/CONTROL b/ports/libssh/CONTROL new file mode 100644 index 000000000..284d44091 --- /dev/null +++ b/ports/libssh/CONTROL @@ -0,0 +1,4 @@ +Source: libssh +Version: 0.7.5 +Description:libssh is a multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side +Build-Depends: zlib, openssl diff --git a/ports/libssh/portfile.cmake b/ports/libssh/portfile.cmake new file mode 100644 index 000000000..8cac84063 --- /dev/null +++ b/ports/libssh/portfile.cmake @@ -0,0 +1,34 @@ +include(vcpkg_common_functions) + +if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore) + message(FATAL_ERROR "WindowsStore not supported") +endif() +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/libssh-0.7.5) +vcpkg_download_distfile(ARCHIVE + URLS "https://red.libssh.org/attachments/download/218/libssh-0.7.5.tar.xz" + FILENAME "libssh-0.7.5.tar.xz" + SHA512 6c7f539899caaedf13d66fa2e0fac1a475ecdfe389131abcbdf908bdebc50a0b9e6b0d43e67e52aea85c32f6aa68e46ca2f50695992f82ded83489f445a8e775 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS -DWITH_STATIC_LIB=ON + +) + +vcpkg_install_cmake() +vcpkg_copy_pdbs() + +vcpkg_fixup_cmake_targets(CONFIG_PATH "cmake/libssh") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(INSTALL ${CURRENT_PACKAGES_DIR}/lib/static/ssh.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib) + file(INSTALL ${CURRENT_PACKAGES_DIR}/debug/lib/static/ssh.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) +endif() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/static ${CURRENT_PACKAGES_DIR}/debug/lib/static) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libssh RENAME copyright) |
