# -*- 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           openssl 1.0

github.setup        eclipse paho.mqtt.cpp 1.5.2 v
github.tarball_from archive
revision            0
categories          net
maintainers         nomaintainer
license             EPL-2

description         Library to enable C++ 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.

depends_lib-append \
                    port:paho.mqtt.c

# 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_WITH_SSL=ON

checksums           rmd160  f0d957c6beee178158007d946601c550ab7131ed \
                    sha256  3d8d9bfee614d74fa2e28dc244733c79e4868fa32a2d49af303ec176ccc55bfb \
                    size    266145

# Since 1.5.0 a C++17 compiler is required
compiler.cxx_standard   2017
