# -*- 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 github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 PortGroup openssl 1.0 github.setup eclipse paho.mqtt.c 1.3.13 v revision 1 categories net maintainers nomaintainer license EPL-2 description Library to enable applications to connect to an MQTT broker to publish and receive messages. long_description MQTT and MQTT-SN are lightweight publish/subscribe \ messaging transports for TCP/IP and connectionless \ protocols (such as UDP) respectively. The Eclipse \ Paho project provides open source, mainly client side, \ implementations of MQTT and MQTT-SN in a variety of \ programming languages. # clock_gettime legacysupport.newest_darwin_requires_legacy 15 # https://github.com/eclipse/paho.mqtt.c/pull/1523 patchfiles-append 0001-Thread-fix-dispatch-usage-on-macOS.patch \ 0002-Thread.c-fix-Availability-macros.patch # We enable SSL so that the paho.mqtt.cpp library builds without issues configure.args-append \ -DPAHO_BUILD_SHARED=ON \ -DPAHO_BUILD_STATIC=ON \ -DPAHO_ENABLE_TESTING=ON \ -DPAHO_WITH_SSL=ON checksums rmd160 69206580bada08a339b932d3082bf8b91a6e9827 \ sha256 307361735039878bb82654a9decaf86b3d45f6aa62b96648dfae5fd4a1f65925 \ size 3489430 configure.pre_args-replace \ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF if {${os.platform} eq "darwin" && ${configure.build_arch} in [list ppc ppc64]} { variant legacy_dispatch description "Use dispatch via libdispatch-legacy port" { depends_lib-append \ port:libdispatch-legacy configure.cppflags-append \ -DHAS_DISPATCH -I${prefix}/libexec/dispatch/usr/include configure.ldflags-append \ ${prefix}/libexec/dispatch/usr/lib/libdispatch.a } } # FIXME: https://github.com/eclipse/paho.mqtt.c/issues/1524 test.run yes