# -*- 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

name                libkdegames
version             4.14.3
revision            3
categories          kde kde4
license             LGPL-2+ GPL-2+ BSD MIT
maintainers         nicos openmaintainer
description         Library for general utilities of kde games.
long_description    ${description}
platforms           darwin
homepage            http://games.kde.org/
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  ca489492d0c9b3bb263378b8d0f225a5bcc7e20c \
                    sha256  c4f2cf08c85f3e2ce809fe8c7a032e26fc20707a27934c6381093c77cc26a265

#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict  openssl

depends_lib-append  port:kdelibs4 \
                    port:libsndfile

pre-activate {
    #Deactivate hack for when kdegames4 port has been fragmented into small ports
    if {[file exists ${prefix}/include/KDE/KExtHighscore] 
        && ![catch {set vers [lindex [registry_active kdegames4] 0]}] 
        && [vercmp [lindex $vers 1] 4.10.0] < 0} {
            registry_deactivate_composite kdegames4 "" [list ports_nodepcheck 1] 
    } 
}

livecheck.url       http://kde.mirrors.hoobly.com/stable/
livecheck.regex     (\\d+(\\.\\d+)+)
