# -*- 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                ksquares
version             4.14.3
revision            3
categories          kde kde4 games
license             GPL-2+
maintainers         nomaintainer
description         KSquares is a fun and exciting game for desktop environment. 
long_description    ${description} The game is modeled after the well known pen \
                    and paper based game of Dots and Boxes.
platforms           darwin
homepage            http://games.kde.org/game.php?game=ksquares
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  69f64bf9be99ae2a9f033f0cdad46881d0d5f142 \
                    sha256  f1d84b530de595303416ff96dbe36994931e8fe7a1c1341250a161f78d37efff

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

depends_lib-append  port:kdelibs4 \
                    port:libkdegames

pre-configure {
    if {![variant_isset docs]} {
        reinplace "s|add_subdirectory(doc)|#add_subdirectory(doc)|g" ${worksrcpath}/CMakeLists.txt
    }
}

livecheck.url       ${kde4.mirror}
livecheck.regex     (\\d+(\\.\\d+)+)
