# -*- 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 fbthrift 2024.01.22.00 v revision 0 checksums rmd160 a03861b9f5ef568565ff73586bcb303ae1c96164 \ sha256 928cbabaa25b70b7998a452269e5d53cd003b5d5fe0fb104cc5c30af4054c883 \ size 14217550 categories devel license Apache-2 maintainers {@barracuda156 gmail.com:vital.had} openmaintainer description Facebook's branch of Apache Thrift, including a new C++ server. 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:fizz \ port:mstch \ port:mvfst \ port:wangle \ port:${port_libfmt} patchfiles patch-cpp2.diff # Fix error: invalid output constraint '=@ccc' in asm compiler.blacklist-append \ {clang < 1200} compiler.cxx_standard 2017 cmake.generator Ninja 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 { # Disable aligned_alloc support for 10.13 and earlier if {${os.major} < 18} { # gcc does not recognize -fno-aligned-allocation if {[string match *clang* ${configure.compiler}]} { configure.cxxflags-append \ -fno-aligned-allocation } } if {[string match *gcc* ${configure.compiler}]} { configure.ldflags-append \ -latomic } }