2022-12-13 08:22:49 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/libphonenumber
|
2023-03-14 02:35:01 +08:00
|
|
|
REF "v${VERSION}"
|
2024-03-06 15:34:46 +08:00
|
|
|
SHA512 a672304611be3cfba8cc35a6b4ab8e6b84269577803a0517258f019fbd69785e800ce905220d86426d2c1b19debf5ed8d019d9c3e21be47d270f62b692f2f9f9
|
2022-12-13 08:22:49 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2023-03-31 03:02:19 +08:00
|
|
|
fix-re2-identifiers.patch
|
|
|
|
fix-icui18n-lib-name.patch
|
2023-01-16 03:04:04 +08:00
|
|
|
fix-find-protobuf.patch
|
2023-07-27 01:49:15 +08:00
|
|
|
re2-2023-07-01-compat.patch
|
2022-12-13 08:22:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/cpp"
|
|
|
|
OPTIONS
|
|
|
|
-DREGENERATE_METADATA=OFF
|
|
|
|
-DUSE_RE2=ON
|
|
|
|
-DBUILD_GEOCODER=OFF
|
2023-03-14 02:35:01 +08:00
|
|
|
-DUSE_PROTOBUF_LITE=ON
|
|
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
|
|
-DBUILD_TESTING=OFF)
|
2022-12-13 08:22:49 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2023-08-08 00:07:45 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
2022-12-13 08:22:49 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-14 02:35:01 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2023-08-08 00:07:45 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|