Ticket #43785: zmq_Portfile

File zmq_Portfile, 2.3 KB (added by michaelld (Michael Dickens), 10 years ago)
Line 
1# -*- 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
2# $Id: Portfile 111866 2013-10-04 14:32:19Z raimue@macports.org $
3
4PortSystem          1.0
5
6name                zmq
7
8categories          devel sysutils net
9license             LGPL-3+
10platforms           darwin
11maintainers         inconsistent.nl:merijn stromnov michaelld openmaintainer
12
13description         0MQ (ZeroMQ) lightweight messaging kernel
14
15long_description    \
16    The 0MQ lightweight messaging kernel is a library which extends the \
17    standard socket interfaces with features traditionally provided by \
18    specialised messaging middleware products. 0MQ sockets provide an \
19    abstraction of asynchronous message queues, multiple messaging patterns, \
20    message filtering (subscriptions), seamless access to multiple transport \
21    protocols and more.
22
23homepage            http://www.zeromq.org/
24master_sites        http://download.zeromq.org/
25
26depends_lib-append  port:libsodium
27
28if {${subport} eq ${name}} {
29
30    version             3.2.4
31
32    checksums           rmd160 9f62881bc5d910cc1d1eb91df6be0ad3ca09d541 \
33                        sha256 df96a141c85b65c2cb6c0db22223126623a09eecbfccb7f74400f3f938742f59
34
35    conflicts           zmq-devel zmq22
36
37}
38
39subport zmq22 {
40
41    version             2.2.0
42
43    checksums           rmd160 63c6ca84c292a72ffb0e18f1a97a6fa744a6be7c \
44                        sha256 43904aeb9ea6844f72ca02e4e53bf1d481a1a0264e64979da761464e88604637
45
46    conflicts           zmq zmq-devel
47
48}
49
50subport zmq-devel {
51
52    version             4.0.4
53
54    checksums           rmd160 6971d9842ce6bc9197c9c8179eabde29ad54a81a \
55                        sha256 1ef71d46e94f33e27dd5a1661ed626cd39be4d2d6967792a275040e34457d399
56
57    conflicts           zmq zmq22
58
59}
60
61distname            zeromq-${version}
62worksrcdir          zeromq-[strsed ${version} {g/[^0-9.].*$//}]
63
64# macports libtool allows linking against libc++,
65# the libtool in the distribution does not
66
67depends_build       port:libtool
68build.args          LIBTOOL=${prefix}/bin/glibtool
69
70variant pgm description {build with PGM extension} {
71    configure.args-append   --with-pgm
72}
73
74set major           [lindex [split ${version} .] 0]
75
76livecheck.type      regex
77livecheck.url       ${homepage}area:download
78livecheck.regex     zeromq-(${major}.\[0-9.\]+)${extract.suffix}