# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 68608 2010-06-08 00:15:00Z snc@macports.org $

PortSystem          1.0
PortGroup           kde4   1.0

name                kdenetwork4
version             4.4.4
categories          kde kde4 network
maintainers         snc sharky
description         KDE4 networking applications
long_description    Networking applications such as an instant messenger \
                    and download manager
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${version}/src
use_bzip2           yes
distname            kdenetwork-${version}
checksums           md5     42619dc65cf8b8a6e483dff23a4a5127 \
                    sha1    1706b009d723897cbc9ad9b0c1743873e8e79362 \
                    rmd160  ad4a8ef9ba6baf1e3c161f3df9cae314e3381f00

depends_lib-append  port:kdebase4-runtime \
                    port:meanwhile \
                    port:qca \
                    path:lib/libspeex.dylib:speex \
                    port:libidn \
                    port:libotr
depends_run-append  port:qca-ossl

configure.args-append   ../${distname} \
                        -DQCA2_LIBRARIES=${prefix}/lib/libqca.2.dylib \
                        -DQCA2_INCLUDE_DIR=${prefix}/include/QtCrypto

variant no_kopete conflicts libmsn xmms description "Do not install Kopete instant messaging client" {
    depends_lib-delete      port:qca \
                            path:lib/libspeex.dylib:speex \
                            port:libotr \
                            port:libidn
    depends_run-delete      port:qca-ossl
    configure.args-append   -DBUILD_kopete=OFF
}

variant xmms conflicts no_kopete description {Used by the Kopete nowlistening plugin to support the XMMS player} {
    depends_lib-append port:xmms
}

variant libmsn conflicts no_kopete description {Required for the Kopete wlm plugin} {
    depends_lib-append port:libmsn
}

universal_variant   no

livecheck.url       http://mirrors.ibiblio.org/pub/mirrors/kde/stable/latest/src/
livecheck.regex     kdenetwork-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
