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

github.setup        facebook folly 2017.03.20.00 v
revision            1
categories          devel
platforms           darwin
license             Apache-2

maintainers         sean openmaintainer

description         An open-source C++ library developed and used at Facebook.
long_description    ${description}

checksums           rmd160  5dc40b05e7c9852001546e9f5e9737e26b197494 \
                    sha256  8e58e5841890bcd999971663754f4f1c064acf0acb2c2efaddbd4488d2497f95

use_autoreconf      yes

worksrcdir          ${worksrcdir}/folly

# needed for ax_boost and friends
depends_build-append \
                    port:autoconf-archive \
                    port:pkgconfig

# doesn't build with libressl as of 2016-09-05
depends_lib-append  port:boost \
                    port:python27 \
                    port:gflags \
                    port:google-glog \
                    port:double-conversion \
                    port:libevent \
                    port:snappy \
                    port:lz4 \
                    port:lzma \
                    port:xz \
                    port:openssl \
                    port:zlib \
                    port:zstd