# -*- 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: Portfile 120243 2014-05-20 08:02:31Z stromnov@macports.org $

PortSystem          1.0

name                zmq-devel
version             4.0.4
revision            1
categories          devel net
platforms           darwin
license             LGPL-3+

maintainers         stromnov openmaintainer

description         ØMQ (ZeroMQ) lightweight messaging kernel

long_description    The ØMQ lightweight messaging kernel is a library which \
                    extends the standard socket interfaces with features \
                    traditionally provided by specialised messaging middleware \
                    products. ØMQ sockets provide an abstraction of asynchronous \
                    message queues, multiple messaging patterns, message \
                    filtering (subscriptions), seamless access to multiple \
                    transport protocols and more.

homepage            http://www.zeromq.org/
master_sites        http://download.zeromq.org/

distname            zeromq-${version}
worksrcdir          zeromq-[strsed ${version} {g/[^0-9.].*$//}]

checksums           rmd160  6971d9842ce6bc9197c9c8179eabde29ad54a81a \
                    sha256  1ef71d46e94f33e27dd5a1661ed626cd39be4d2d6967792a275040e34457d399

conflicts           zmq zmq20 zmq22

universal_variant   yes

depends_lib-append  port:libsodium

variant pgm description {build with PGM extension} {
    configure.args-append   --with-pgm
}

livecheck.type      regex
livecheck.url       ${homepage}area:download
livecheck.regex     {zeromq-([0-9.]+(?:-rc[0-9])?)\.[tz]}
