# -*- 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.9.16 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 7da5e76acb5688b3899e37dea6655ddfcb80f852 \
sha256 9b8e781e0f5b4934c6bdf0c39ffb9a4be018d45b63f8e9f22c0de0f44fb51091 \
rmd160 b0a9e48874df3291a261ed85a0c0a4d677b01dc1 \
sha256 58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8 \
worksrcdir googlei18n-libphonenumber-5036594/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
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