# -*- 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           cmake 1.1
PortGroup           github 1.0

github.setup        euroelessar jreen 1.3.0 v
revision            0

categories          net devel
license             {GPL-3 LGPL-3}
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer

description         Extensible XMPP library
long_description    {*}${description}
checksums           rmd160  4a753f7a782bdab5704d9d850c7a65ccb3124470 \
                    sha256  f93c3d338c011c0945dacb14eb9da3be9541028c9eaa6f2024e688eb8a49b07e \
                    size    287827
github.tarball_from archive

if {${os.platform} eq "darwin" && ${os.major} < 11} {
    PortGroup       qt4 1.0

    configure.args-append \
                    -DJREEN_FORCE_QT4=ON
} else {
    PortGroup       qt5 1.0

}

depends_lib-append  port:libgsasl \
                    port:libidn2 \
                    port:speex \
                    port:zlib
