early-access version 2853
This commit is contained in:
48
externals/vcpkg/ports/telnetpp/fix-install-paths.patch
vendored
Executable file
48
externals/vcpkg/ports/telnetpp/fix-install-paths.patch
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
CMakeLists.txt | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 09722a9..7bf9952 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -277,18 +277,18 @@ install(
|
||||
EXPORT
|
||||
telnetpp-config
|
||||
ARCHIVE DESTINATION
|
||||
- lib/telnetpp-${TELNETPP_VERSION}
|
||||
+ lib
|
||||
RUNTIME DESTINATION
|
||||
- lib/telnetpp-${TELNETPP_VERSION}
|
||||
+ bin
|
||||
LIBRARY DESTINATION
|
||||
- lib/telnetpp-${TELNETPP_VERSION}
|
||||
+ lib
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY
|
||||
include/
|
||||
DESTINATION
|
||||
- include/telnetpp-${TELNETPP_VERSION}
|
||||
+ include
|
||||
)
|
||||
|
||||
export(
|
||||
@@ -302,7 +302,7 @@ install(
|
||||
EXPORT
|
||||
telnetpp-config
|
||||
DESTINATION
|
||||
- lib/telnetpp-${TELNETPP_VERSION}
|
||||
+ share/telnetpp
|
||||
)
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
@@ -317,7 +317,7 @@ install(
|
||||
FILES
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/telnetpp-config-version.cmake"
|
||||
DESTINATION
|
||||
- lib/telnetpp-${TELNETPP_VERSION}
|
||||
+ share/telnetpp
|
||||
)
|
||||
|
||||
if (TELNETPP_WITH_TESTS)
|
||||
35
externals/vcpkg/ports/telnetpp/portfile.cmake
vendored
Executable file
35
externals/vcpkg/ports/telnetpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KazDragon/telnetpp
|
||||
REF f370ebd0c0dc6505708065ee5afdc59a6de54387 # v2.1.2 + MSVC patches
|
||||
SHA512 c58cb9159a8fb6c4b089a0212a995f70f08b93877d98828aa263e9f065f42a932d98749b56741d9e711c0805dcc2dcf0607dc86b0553c4e34bd3fad99e0bf157
|
||||
HEAD_REF master
|
||||
PATCHES fix-install-paths.patch
|
||||
)
|
||||
|
||||
set(USE_ZLIB OFF)
|
||||
if("zlib" IN_LIST FEATURES)
|
||||
set(USE_ZLIB ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DGSL_INCLUDE_PATH=${CURRENT_INSTALLED_DIR}/include
|
||||
-DTELNETPP_WITH_ZLIB=${USE_ZLIB}
|
||||
-DTELNETPP_WITH_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/telnetpp)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Remove duplicate header files and CMake input file
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/telnetpp/version.hpp.in)
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/telnetpp RENAME copyright)
|
||||
27
externals/vcpkg/ports/telnetpp/vcpkg.json
vendored
Executable file
27
externals/vcpkg/ports/telnetpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "telnetpp",
|
||||
"version-string": "2.1.2",
|
||||
"port-version": 1,
|
||||
"description": "Telnet++ is an implementation of the Telnet Session Layer protocol using C++14",
|
||||
"homepage": "https://github.com/KazDragon/telnetpp",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"boost-container",
|
||||
"boost-exception",
|
||||
"boost-range",
|
||||
"boost-signals2",
|
||||
"boost-variant",
|
||||
"gsl-lite"
|
||||
],
|
||||
"default-features": [
|
||||
"zlib"
|
||||
],
|
||||
"features": {
|
||||
"zlib": {
|
||||
"description": "Zlib support",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user