# -*- 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
github.setup googlei18n libphonenumber 8.11.0 v
description Google's C++ library for parsing, formatting, storing \
and validating international phone numbers.
long_description ${description}
maintainers {devans @dbevans} openmaintainer
set main_distfile ${distfiles}
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 \
master_sites ${github.master_sites}:main \
checksums ${main_distfile} \
rmd160 8b1ed4e2b508961911a73b52d28402baaed6ffd0 \
sha256 0c6fe20de75476b75a8d732d6ae5684bee076d4ce87c85f199ccad3da1582b38 \
rmd160 f2f7f96adf1ab8aae3f6204fdba3ff150fd4396b \
sha256 9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb \
worksrcdir google-libphonenumber-ab3cf21/cpp
patchfiles patch-cpp-CMakeLists.txt.diff
depends_lib-append port:boost \
-DGTEST_SOURCE_DIR=${gtest_srcdir} \
-DGTEST_INCLUDE_DIR=${gtest_srcdir}/include
# as of 3.6.0, protobuf3-cpp requires c++11
compiler.cxx_standard 2011
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