vcpkg/ports/libphonenumber/portfile.cmake
Jia Yue Hua a552b81342
[libphonenumber] update to 8.13.23 (#34621)
* [libphonenumber] update to 8.13.23

* [libphonenumber] update to 8.13.23
2023-10-20 09:39:22 -07:00

35 lines
1.0 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/libphonenumber
REF "v${VERSION}"
SHA512 d7a576e64fd3f3ce9d4f79750d8c785c56efd97d90f37d0062fb2634124ed6b181c74e772b4d9e72daf8897cc9cae4d4e525dd8b5113739c8c7ac7279315cd66
HEAD_REF master
PATCHES
fix-re2-identifiers.patch
fix-icui18n-lib-name.patch
fix-find-protobuf.patch
re2-2023-07-01-compat.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/cpp"
OPTIONS
-DREGENERATE_METADATA=OFF
-DUSE_RE2=ON
-DBUILD_GEOCODER=OFF
-DUSE_PROTOBUF_LITE=ON
-DBUILD_SHARED_LIBS=OFF
-DBUILD_TESTING=OFF)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")