# -*- 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
# $Id$

PortSystem          1.0
PortGroup           github 1.0
PortGroup           cxx11 1.0

github.setup        facebook folly 2016.08.22.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  eae22943df01420f1e524a8d288b4d43ff1d3542 \
                    sha256  fad4cc85dc7d20c62672ec438b38e852e6e58119d519a1607c678e71edef47eb

use_autoreconf      yes

worksrcdir          ${worksrcdir}/folly

# can remove after next version is released
patch.pre_args      -p2
patchfiles-append   patch-alloc.diff \
                    patch-malloc.diff \
                    patch-reference.diff

# 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