diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/fineftp | |
Diffstat (limited to 'vcpkg/ports/fineftp')
| -rw-r--r-- | vcpkg/ports/fineftp/asio.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/fineftp/portfile.cmake | 26 | ||||
| -rw-r--r-- | vcpkg/ports/fineftp/vcpkg.json | 20 |
3 files changed, 59 insertions, 0 deletions
diff --git a/vcpkg/ports/fineftp/asio.patch b/vcpkg/ports/fineftp/asio.patch new file mode 100644 index 0000000..a5d008f --- /dev/null +++ b/vcpkg/ports/fineftp/asio.patch @@ -0,0 +1,13 @@ +diff --git a/fineftp-server/CMakeLists.txt b/fineftp-server/CMakeLists.txt +index e4e3152..9e609d9 100644 +--- a/fineftp-server/CMakeLists.txt ++++ b/fineftp-server/CMakeLists.txt +@@ -10,7 +10,7 @@ set(CMAKE_CXX_VISIBILITY_PRESET hidden) + set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) + + find_package(Threads REQUIRED) +-find_package(asio REQUIRED) ++find_package(asio CONFIG REQUIRED) + + # Include GenerateExportHeader that will create export macros for us + include(GenerateExportHeader) diff --git a/vcpkg/ports/fineftp/portfile.cmake b/vcpkg/ports/fineftp/portfile.cmake new file mode 100644 index 0000000..b87d70a --- /dev/null +++ b/vcpkg/ports/fineftp/portfile.cmake @@ -0,0 +1,26 @@ +#Get release from GitHub
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO eclipse-ecal/fineftp-server
+ REF "v${VERSION}"
+ SHA512 10e6fe6724e1751cb72d212f5fc8053b9c715e79ab41b080beb35c3501377b9e8fd8137de0b30266709aa34432dfa4593026db1b04735f7c1a4dbde90763ea97
+ HEAD_REF master
+ PATCHES
+ asio.patch
+)
+
+# Configure
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME fineftp
+ CONFIG_PATH lib/cmake/fineftp
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
diff --git a/vcpkg/ports/fineftp/vcpkg.json b/vcpkg/ports/fineftp/vcpkg.json new file mode 100644 index 0000000..aff4078 --- /dev/null +++ b/vcpkg/ports/fineftp/vcpkg.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "name": "fineftp", + "version": "1.5.1", + "description": "FineFTP is a minimal FTP server library for Windows and Unix flavors.", + "homepage": "https://github.com/eclipse-ecal/fineftp-server", + "license": "MIT", + "supports": "!uwp & !android", + "dependencies": [ + "asio", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |