Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libftp] Add new port #42124

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
27 changes: 27 additions & 0 deletions ports/libftp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
deniskovalchuk marked this conversation as resolved.
Show resolved Hide resolved

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO deniskovalchuk/libftp
REF "v${VERSION}"
SHA512 7765c35884e1e4560e39018b15f441abac687afcb06942b0350ef21df8bf27d40283011397ce4a9e9125772bb9752180c225429b274fd6374e1a521ac2744b2e
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DLIBFTP_BUILD_TEST=OFF
-DLIBFTP_BUILD_EXAMPLE=OFF
-DLIBFTP_BUILD_CMDLINE_CLIENT=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(PACKAGE_NAME ftp
CONFIG_PATH "share/cmake/ftp")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
Mengna-Li marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions ports/libftp/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libftp provides CMake targets:

find_package(ftp CONFIG REQUIRED)
target_link_libraries(main PRIVATE ftp::ftp)
22 changes: 22 additions & 0 deletions ports/libftp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "libftp",
"version": "1.3.0",
"maintainers": "Denis Kovalchuk <denis.kovalchuk.main@gmail.com>",
"description": "A cross-platform FTP/FTPS client library based on Boost.Asio.",
"homepage": "https://github.com/deniskovalchuk/libftp",
"license": "MIT",
"supports": "!uwp",
deniskovalchuk marked this conversation as resolved.
Show resolved Hide resolved
"dependencies": [
"boost-asio",
"boost-format",
"openssl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4568,6 +4568,10 @@
"baseline": "1.5",
"port-version": 5
},
"libftp": {
"baseline": "1.3.0",
"port-version": 0
},
"libfuse": {
"baseline": "3.16.2",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libftp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a1828b639bda1924f16b8f84e7d7e9a47637003b",
"version": "1.3.0",
"port-version": 0
}
]
}