2022-03-12 01:57:37 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2021-07-23 06:11:30 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO seladb/PcapPlusPlus
|
2022-12-22 08:51:43 +08:00
|
|
|
REF v22.11
|
|
|
|
SHA512 41a507ce385d8549186eeec1a1ae138070ab2021d9ffd907829551b3b865ecb526fa05a0ff9ca01b41a2a2807a60a3cba016f62063d30d849282c83e17a2b6e1
|
2021-07-23 06:11:30 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2022-03-12 01:57:37 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
)
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-12-09 02:44:27 +08:00
|
|
|
file(APPEND ${CURRENT_PACKAGES_DIR}/share/unofficial-pcapplusplus/unofficial-pcapplusplus-config.cmake "
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Threads)")
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-pcapplusplus)
|
|
|
|
|
2022-03-12 01:57:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-07-23 06:11:30 +08:00
|
|
|
|
2022-12-09 02:44:27 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|