# -*- 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                kdesdk4
version             4.4.4
categories          kde kde4
maintainers         snc sharky
description         Utilities to ease development with the KDE4 platform
long_description    Scripts and tools which simplify development of KDE applications. e.g. Kate, the advanced text editor.
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${version}/src/
use_bzip2           yes
distname            kdesdk-${version}
checksums           md5     fecf6bd1dd1664147543fd65cda532e6 \
                    sha1    f62a54f7d1e6b260f548c9031c5ddcafac0c9eaf \
                    rmd160  cb7cff2c057e1b6fbb1fd1eed8be536d6d2340b1

depends_lib-append  port:kdelibs4 port:kdebase4-runtime \
                    port:boost

patchfiles-append   patch-disable-umbrello.diff
patch.dir           ${workpath}/${distname}

configure.args-append   ../${distname}

variant no_boost description {Required to build Umbrello} {
    depends_lib-delete  port:boost
    patchfiles-delete   patch-disable-umbrello.diff
}

universal_variant   no

livecheck.type      regex
livecheck.url       http://kde.mirrors.hoobly.com/stable/latest/src/
livecheck.regex     kdesdk-(\\d+\\.\\d+\\.\\d+)
