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

name                gloox
version             1.0.28
revision            0

categories          net devel
maintainers         nomaintainer
license             {GPL-3 OpenSSLException}

description         C++ Jabber/XMPP library taking care of the low-level protocol

long_description    gloox is a C++ Jabber/XMPP library which takes care of \
                    the low-level protocol stuff. Additionally, it offers high-level \
                    interfaces for interaction with an XMPP server.

homepage            https://camaya.net/gloox
master_sites        https://camaya.net/download/
use_bzip2           yes

checksums           rmd160  32a83632baef7562c7b77ee6d9cda25db50acb46 \
                    sha256  591bd12c249ede0b50a1ef6b99ac0de8ef9c1ba4fd2e186f97a740215cc5966c \
                    size    728337

depends_build       port:pkgconfig

# connectiontcpserver.cpp: error: 'memset' was not declared in this scope
patchfiles          patch-cstring.diff

depends_lib-append  port:gettext \
                    path:lib/pkgconfig/gnutls.pc:gnutls \
                    port:iksemel \
                    port:libgcrypt \
                    port:libgpg-error \
                    port:libiconv \
                    port:libidn2 \
                    port:zlib

configure.args      --with-gnutls=${prefix} \
                    --with-libidn=${prefix} \
                    --with-zlib=${prefix}

# /opt/local/include/gnutls/gnutls.h: error: comma at end of enumerator list
compiler.blacklist-append \
                    *gcc-4.* {clang < 421}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
