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

github.setup        strophe libstrophe 0.14.0
revision            0
categories          net
maintainers         nomaintainer
description         A simple, lightweight C library for writing XMPP clients
homepage            https://strophe.im/libstrophe
license             {GPL-3 MIT}
long_description    libstrophe is a lightweight XMPP client library written in C. \
                    It has minimal dependencies and is configurable for various \
                    environments. It runs well on both Linux, Unix and Windows-based platforms.
checksums           rmd160  08b64ac2574b47cfb32a2c4625422cd1c3f3eeef \
                    sha256  adeb9e673d7f8b8cd20a2437cc220a8de581abf6e46594896b622e3e0dfa5c1f \
                    size    232918
github.tarball_from archive

depends_build       port:m4 \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:expat \
                    path:lib/libssl.dylib:openssl

use_autoreconf      yes

variant libxml description {Use libxml for XML parsing} {
    depends_lib-delete     port:expat
    depends_lib-append     port:libxml2
    configure.args-append  --with-libxml2
}

post-destroot {
    delete ${destroot}${prefix}/lib/libstrophe.a
}
