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

github.setup zeromq cppzmq 4.11.0 v
github.tarball_from archive
revision  0
# bump the epoch because I moved the version from 20170720 to 4.2.2
epoch     1

name                cppzmq
maintainers         {michaelld @michaelld} openmaintainer
platforms           any
supported_archs     noarch
categories          devel sysutils net
license             Permissive

description         High-level C++ Binding for 0MQ
long_description    {*}${description}

checksums           rmd160  693dc64fce9f5a69df4544b1e60e62cfeea92dbb \
                    sha256  0fff4ff311a7c88fdb76fceefba0e180232d56984f577db371d505e4d4c91afd \
                    size    49666

depends_build-append port:pkgconfig

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

# use C++11 to get a compiler new enough to handle
# "__attribute__((deprecated()))". This is used just in testing,
# since all this port installs is a header. But, this setting
# allows the port to "build" and do testing on older OSs where the
# default compiler isn't modern enough.
compiler.cxx_standard 2011

# disable building tests by default
configure.args-append \
    -DCPPZMQ_BUILD_TESTS=NO
