# -*- 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.3 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  32f282f6ce02fab2ea7ceb6ade58a179930836ee \
                    sha256  8aab7761bcb43e2d65dbf266c8623d345f7612411363a97aa66370fb9822d0b9 \
                    size    266347

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