mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 13:53:02 +08:00
[libssh] init #1454
This commit is contained in:
parent
a42da34a07
commit
a92af9b14f
4
ports/libssh/CONTROL
Normal file
4
ports/libssh/CONTROL
Normal file
@ -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
|
34
ports/libssh/portfile.cmake
Normal file
34
ports/libssh/portfile.cmake
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user