# -*- 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.10.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
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  17bae50ba680621e7dc9a33f8ee266407e91ecd8 \
                    sha256  5d67927b42470c6df3d12deaaa17ebc841a242a288e0723376b58b9825351982 \
                    size    47113

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
