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

github.setup        zeromq azmq 1.0.3 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          devel
license             Boost-1
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         C++ language binding library integrating ZeroMQ with Boost Asio
long_description    {*}${description}
checksums           rmd160  88ddb22a66c3d6991bc29a36878d4634f9537f4b \
                    sha256  91143dd97b4748a422ebb78286430fca8b87a6ec0c0dc1324f6f317a95985464 \
                    size    101669
platforms           any
supported_archs     noarch

depends_lib-append  path:lib/libzmq.dylib:zmq

post-patch {
    reinplace "s|Boost 1.68|Boost ${boost.version}|" ${worksrcpath}/CMakeLists.txt
}

compiler.cxx_standard 2011

# Counter-intuitively, BUILD_SHARED_LIBS stands for using dynamic libzmq and not building.
configure.args-append \
                    -DBUILD_SHARED_LIBS=ON \
                    -DAZMQ_BUILD_TESTS=ON \
                    -DAZMQ_BUILD_DOC=OFF

test.run            yes
