# -*- 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 cxx11 1.1 PortGroup github 1.0 github.setup googlei18n libphonenumber 8.9.16 v 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.8.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 7da5e76acb5688b3899e37dea6655ddfcb80f852 \ sha256 9b8e781e0f5b4934c6bdf0c39ffb9a4be018d45b63f8e9f22c0de0f44fb51091 \ size 7597951 \ ${gtest_distfile} \ rmd160 b0a9e48874df3291a261ed85a0c0a4d677b01dc1 \ sha256 58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8 \ size 1281617 worksrcdir googlei18n-libphonenumber-5036594/cpp patchfiles patch-cpp-CMakeLists.txt.diff depends_build-append \ port:pkgconfig depends_lib-append port:boost \ port:icu \ port:protobuf3-cpp configure.args-append \ -DGTEST_SOURCE_DIR=${gtest_srcdir} \ -DGTEST_INCLUDE_DIR=${gtest_srcdir}/include # as of 3.6.0, protobuf3-cpp requires c++11 configure.cxxflags-append -std=c++11 # 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