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

github.setup        KDE ktorrent 4.3.1
name                ktorrent4

# ktorrent4 and libktorrent usually need to be updated together
revision            4
categories          kde kde4
license             GPL-3+
maintainers         {nicos @NicosPavlov} openmaintainer
description         KDE4 bittorrent client, version 4.
long_description    Bittorrent client for KDE4 supporting a variety of \
                    features such as uPNP.
platforms           darwin
homepage            https://www.kde.org/applications/internet/ktorrent/
master_sites        https://github.com/KDE/ktorrent/archive/

checksums           rmd160  29a3bea31c787ce6bf22a705830f57119c888ab3 \
                    sha256  b88a9cd5f0bad5a53fc50396e5e6a5c2f0ca9f02ccf3ffb93ff42484abccee91

distfiles           v${version}${extract.suffix}

#Deactivating ipfilter plugin, which has linking problems (QHostAddress)
configure.args-append   -DENABLE_IPFILTER_PLUGIN=false 

depends_lib-append  port:kde4-runtime port:kdepimlibs4 \
                    port:libktorrent port:boost port:taglib

depends_build-append bin:perl:perl5

livecheck.version   v${github.version}