# -*- 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 boost 1.0 PortGroup cmake 1.1 PortGroup compiler_blacklist_versions 1.0 PortGroup github 1.0 PortGroup legacysupport 1.1 PortGroup openssl 1.0 boost.version 1.81 github.setup facebook fb303 2024.01.22.00 v epoch 1 revision 0 checksums rmd160 59ba4d8b461c8cacfc5e1dbf16aa52087297c681 \ sha256 ca1f8552ae5fc63da87b16fe71fdf96f2e7c1684b459193177e207174156e1b7 \ size 242596 categories devel license Apache-2 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description fb303 is a base Thrift service and a common set of functionality for querying stats, options, and other information from a service. long_description {*}${description} github.tarball_from archive set port_libfmt libfmt10 cmake.module_path-append \ ${prefix}/lib/${port_libfmt}/cmake depends_build-append \ port:bison \ port:flex depends_lib-append port:fbthrift \ port:folly \ port:google-glog \ port:mstch \ port:wangle \ port:${port_libfmt} # Fix error: invalid output constraint '=@ccc' in asm compiler.blacklist-append \ {clang < 1200} compiler.cxx_standard 2017 configure.args-append \ -DBUILD_TESTS=OFF \ -DBUILD_SHARED_LIBS=ON \ -DPYTHON_EXTENSIONS=OFF # https://github.com/facebook/fb303/issues/30 if {${os.platform} eq "darwin" && ${os.major} < 11} { configure.args-replace \ -DBUILD_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=OFF } github.livecheck.branch main legacysupport.newest_darwin_requires_legacy 19 if {[string match *clang* ${configure.compiler}]} { # Don’t use libcxx with gcc. legacysupport.use_mp_libcxx yes } platform darwin { if {[string match *gcc* ${configure.compiler}]} { configure.ldflags-append \ -latomic } # The following does not seem to be needed anymore. # Possibly, has been fixed in GCC. Yet, retain the block for now. # Fixes alignment-related static assert failures on PPC: # if {${build_arch} in [list ppc ppc64]} { # configure.cflags-append \ # -malign-natural # configure.cxxflags-append \ # -malign-natural # } }