# -*- 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           github 1.0
PortGroup           openssl 1.0

boost.version       1.81

github.setup        facebookarchive fbzmq 2022.05.30.00 v
revision            0
categories          devel net
license             MIT
maintainers         nomaintainer

description         ${name} provides a framework for writing services in C++ \
                    while leveraging the awesomeness of libzmq (message passing semantics)
long_description    {*}${description}

checksums           rmd160  e97bdfbaef1f04fa155fd829755ce4fc88ec17a4 \
                    sha256  c9c70b3b656fdd0c1706a348ad1f09a1736b4121438c3f21cd8b04e0d8fad8a4 \
                    size    191974
github.tarball_from archive

set port_libfmt     libfmt10
cmake.prefix_path-append \
                    ${prefix}/lib/${port_libfmt}/cmake

depends_lib-append  port:double-conversion \
                    port:fbthrift \
                    port:fizz \
                    port:folly \
                    port:gflags \
                    port:google-glog \
                    port:gtest \
                    port:${port_libfmt} \
                    port:libsodium \
                    port:wangle \
                    path:lib/libzmq.dylib:zmq \
                    port:zstd

compiler.blacklist-append \
                    {clang < 1200}

compiler.cxx_standard   2017

cmake.generator     Ninja

if {[string match *gcc* ${configure.compiler}]} {
    configure.ldflags-append \
                    -latomic
}
