# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup cmake 1.1 PortGroup github 1.0 PortGroup legacysupport 1.1 PortGroup compiler_blacklist_versions 1.0 # MAP_ANONYMOUS legacysupport.newest_darwin_requires_legacy 14 # Ports that depend on this port must be revbump after update. github.setup abseil abseil-cpp 20230125.3 name abseil revision 0 categories devel maintainers {judaew @judaew} openmaintainer license Apache-2 description Abseil - C++ Common Libraries long_description Abseil is an open-source collection of C++ library \ code designed to augment the C++ standard \ library. The Abseil library code is collected from \ Google's own C++ code base, has been extensively \ tested and used in production. checksums rmd160 18ea059168c7f8b5dbaeea433e71c57e9644b157 \ sha256 0195e85f858b38f4563a6f2912e30bfc45dfad4815fbf97d273ed1cae9bbca94 \ size 2119590 patchfiles patch-remove-Xarch-from-pkg-config.diff platform darwin { if {${build_arch} in [list ppc ppc64]} { patchfiles-append patch-darwin-ppc.diff } if {[string match *gcc* ${configure.compiler}]} { configure.ldflags-append \ -latomic } } # ignore pre releases github.livecheck.regex {([0-9.]+)} compiler.cxx_standard 2014 # https://trac.macports.org/ticket/67553 # error: default initialization of an object of const type 'const absl::lts_20230125::Condition' # without a user-provided default constructo compiler.blacklist-append \ {clang < 900} configure.args-append \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_CXX_STANDARD=14 \ -DABSL_PROPAGATE_CXX_STD=ON variant test description "Provide testing" { configure.args-append \ -DBUILD_SHARED_LIBS=OFF \ -DABSL_BUILD_TESTING=ON \ -DABSL_USE_EXTERNAL_GOOGLETEST=ON \ -DABSL_LOCAL_GOOGLETEST_DIR=${prefix}/src/googletest depends_test port:gtest test.run yes test.target test }