2017-10-03 18:58:22 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KazDragon/telnetpp
|
2024-06-03 12:55:58 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 be0a4304846369f85fef68c9b468b720877a640f8fb32496cf56591da4bb515b9afa9ac4c4477b2275049c304bd17c84b8b82efd8af642c509df452fec9d0d8e
|
2017-10-03 18:58:22 +08:00
|
|
|
HEAD_REF master
|
2024-06-03 12:55:58 +08:00
|
|
|
PATCHES
|
|
|
|
fix-install-paths-v3.patch
|
|
|
|
fix_include.patch
|
|
|
|
|
2017-10-03 18:58:22 +08:00
|
|
|
)
|
|
|
|
|
2019-08-25 04:43:57 +08:00
|
|
|
set(USE_ZLIB OFF)
|
|
|
|
if("zlib" IN_LIST FEATURES)
|
|
|
|
set(USE_ZLIB ON)
|
|
|
|
endif()
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-28 01:41:02 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-08-25 04:43:57 +08:00
|
|
|
OPTIONS
|
|
|
|
-DTELNETPP_WITH_ZLIB=${USE_ZLIB}
|
|
|
|
-DTELNETPP_WITH_TESTS=OFF
|
2017-10-03 18:58:22 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-10-03 18:58:22 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/telnetpp)
|
2024-06-03 12:55:58 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/telnetpp-config.cmake" "####################################################################################"
|
|
|
|
[[####################################################################################
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Boost)
|
|
|
|
find_dependency(gsl-lite)
|
|
|
|
find_dependency(ZLIB)]])
|
2017-10-03 18:58:22 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-06-03 12:55:58 +08:00
|
|
|
file(REMOVE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/include/telnetpp/version.hpp.in"
|
|
|
|
)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|