# -*- 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                kdebase4-runtime
version             4.4.4
categories          kde kde4
maintainers         snc sharky
description         Shared data needed by KDE4 programs
long_description    Provides data which is required by KDE4 applications. \
                    e.g. icons and mimetype data.
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${version}/src/
use_bzip2           yes
distname            kdebase-runtime-${version}
checksums           md5     60cc64c36942e3e761493ddfbe2bba7e \
                    sha1    dee7405e7410a7583567a0cc1e76d0d1b0e917ca \
                    rmd160  3e0f12cd5dd48cd487a08d98c55977dff18cbb38

depends_lib-append  port:kdelibs4 \
                    port:qimageblitz \
                    port:oxygen-icons \
                    port:hicolor-icon-theme \
                    port:bison

configure.args-append   ../${distname} \
                        -DWITH_PulseAudio=OFF \
                        -DXINE_INCLUDE_DIR=\"\" \
                        -DXINE_LIBRARY=\"\" \
                        -DKDE4_DISABLE_MULTIMEDIA=ON

variant xine description "Enable xine support" {
# Unsupported. Don't report bugs, unless it comes with a patch :-)
    depends_lib-append      port:xine-lib
    configure.args-delete   -DXINE_INCLUDE_DIR=\"\" \
                            -DXINE_LIBRARY=\"\"
}

patch.dir           ${workpath}/${distname}
patchfiles          patch-attica-0.1.4-compat.diff

variant no_slp description {Remove SLP support in the network:/ kioslave} {
    depends_lib-delete  port:openslp
    patchfiles-append   patch-disable-slp.diff
}

variant no_nepomuk description {Disable building of the Nepomuk semantic desktop system} {
    depends_lib-delete  port:redland (check for -bindings as well)
    depends_lib-delete  port:raptor
    depends_lib-delete  port:virtuoso
    patchfiles-append   patch-disable-nepomuk.diff
}

post-destroot {
# Remove this file as it conflicts with hicolor-icon-theme
    file delete ${destroot}${prefix}/share/icons/hicolor/index.theme
}

universal_variant   no

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