# -*- 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.13.1
revision            0
checksums           rmd160  3031de19467dc1eaff5b133c888ced110b763a9b \
                    sha256  0268509f150d72ef63e830db9e6f0d4ecff9727ee0976ffb99a6feb6eb4100c7 \
                    size    229085
github.tarball_from archive
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.

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
}
