# -*- 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
# $Id: Portfile 120235 2014-05-20 00:49:28Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kmix
version             4.12.5
categories          kde kde4
maintainers         nicos openmaintainer
license             LGPL-2+
description         KMix is an application to allow you to change the volume \
                    of your sound card.
long_description    ${description} Though small, it is full-featured, and it \
                    supports several platforms and sound drivers.
homepage            http://www.kde.org
platforms           darwin
master_sites        kde:stable/${version}/src/
use_xz              yes
checksums           rmd160  f8c729ceb91fc2b43e9fd60e40e91c77c9f51de0 \
                    sha256  37c856944a6fe5cf5c855efde3825c07ced3de2283114058fa64b3686634c4d0

depends_lib-append  port:kdelibs4 \
                    port:libcanberra

platform darwin {
    if { ${os.major} >= 13 } {
        #Ensure that proper headers are used
        patchfiles-append   patch-C11-headers.diff
    }
}

if {![variant_isset docs]} {
    patchfiles-append   patch-CMakeLists.txt.diff
}

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