mirror of https://github.com/microsoft/vcpkg.git
[libssh] Update to 0.9.5 (#13522)
* [libssh] Update to 0.9.5 * Update profile.cmake * Update portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
This commit is contained in:
parent
df37e12e34
commit
97e85bbaa6
|
|
@ -1,5 +1,5 @@
|
|||
Source: libssh
|
||||
Version: 0.9.3-2
|
||||
Version: 0.9.5
|
||||
Homepage: https://www.libssh.org/
|
||||
Description: libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side
|
||||
Default-Features: crypto
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
vcpkg_fail_port_install(ON_TARGET "UWP")
|
||||
|
||||
set(VERSION 0.9.3)
|
||||
set(VERSION 0.9.5)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://www.libssh.org/files/0.9/libssh-${VERSION}.tar.xz"
|
||||
FILENAME "libssh-${VERSION}.tar.xz"
|
||||
SHA512 6e59718565daeca6d224426cc1095a112deff9af8e0b021917e04f08bb7409263c35724de95f591f38e26f0fb3bbbbc69b679b6775edc21dec158d241b076c6f
|
||||
SHA512 64e692a0bfa7f73585ea7b7b8b1d4c9a7f9be59565bfd4de32ca8cd9db121f87e7ad51f5c80269fbd99545af34dcf1894374ed8a6d6c1ac5f8601c026572ac18
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
|
|
@ -14,9 +14,9 @@ vcpkg_extract_source_archive_ex(
|
|||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
mbedtls WITH_MBEDTLS
|
||||
zlib WITH_ZLIB
|
||||
FEATURES
|
||||
mbedtls WITH_MBEDTLS
|
||||
zlib WITH_ZLIB
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
|
@ -36,18 +36,21 @@ vcpkg_copy_pdbs()
|
|||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/include/libssh/libssh.h _contents)
|
||||
string(REPLACE "#ifdef LIBSSH_STATIC" "#if 1" _contents "${_contents}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/libssh/libssh.h "${_contents}")
|
||||
vcpkg_replace_string(
|
||||
${CURRENT_PACKAGES_DIR}/include/libssh/libssh.h
|
||||
"#ifdef LIBSSH_STATIC"
|
||||
"#if 1"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/libssh/libssh-config.cmake _contents)
|
||||
string(REPLACE ".dll" ".lib" _contents "${_contents}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/libssh/libssh-config.cmake "${_contents}")
|
||||
vcpkg_replace_string(
|
||||
${CURRENT_PACKAGES_DIR}/share/libssh/libssh-config.cmake
|
||||
".dll"
|
||||
".lib"
|
||||
)
|
||||
endif()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libssh RENAME copyright)
|
||||
file(INSTALL ${CURRENT_PORT_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/libssh)
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL ${CURRENT_PORT_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
|
|
|
|||
Loading…
Reference in New Issue