# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup cmake 1.1 PortGroup github 1.0 PortGroup boost 1.0 PortGroup legacysupport 1.1 github.setup googlei18n libphonenumber 8.12.44 v revision 6 name libphonenumber-cpp license Apache-2 description Google's C++ library for parsing, formatting, storing \ and validating international phone numbers. long_description {*}${description} maintainers {devans @dbevans} openmaintainer categories devel platforms darwin set main_distfile ${distfiles} set gtest_version 1.11.0 set gtest_distfile release-${gtest_version}.tar.gz set gtest_srcdir ${workpath}/googletest-release-${gtest_version}/googletest set gtest_master https://github.com/google/googletest/archive distfiles ${main_distfile}:main \ ${gtest_distfile}:gtest master_sites ${github.master_sites}:main \ ${gtest_master}:gtest checksums ${main_distfile} \ rmd160 7be20fa914cf9396a41e3730a6cfa9045f398861 \ sha256 7b4dd63ade3f965af4bd9c0372cb1a5d41e828dea4437e9085281ba5ed97a4ef \ size 11139779 \ ${gtest_distfile} \ rmd160 4a1a53c93848c3e80cfd857b0eb2c2aa5029e38b \ sha256 b4870bf121ff7795ba20d20bcdd8627b8e088f2d1dab299a031c1034eddc93d5 \ size 886330 worksrcdir google-libphonenumber-9e9f635/cpp patchfiles patch-cpp-CMakeLists.txt.diff depends_build-append \ port:git \ port:pkgconfig depends_lib-append path:lib/pkgconfig/icu-uc.pc:icu \ port:protobuf3-cpp configure.args-append \ -DGTEST_SOURCE_DIR=${gtest_srcdir} \ -DGTEST_INCLUDE_DIR=${gtest_srcdir}/include \ -DABSL_PROPAGATE_CXX_STD=ON compiler.cxx_standard 2017 configure.cxxflags-append -std=c++17 # force protobuf3-cpp into the no_threadlocal mode on older systems if { ${os.platform} eq "darwin" && ${os.major} < 11 } { configure.cppflags-append -DGOOGLE_PROTOBUF_NO_THREADLOCAL } platform darwin { if {${configure.cxx_stdlib} eq "libc++"} { configure.args-append \ -DUSE_STD_MAP=ON } } test.run yes test.cmd ./libphonenumber_test test.target