# -*- 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                kmix
version             4.14.3
revision            5
categories          kde kde4
maintainers         nomaintainer
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            https://www.kde.org
platforms           darwin
master_sites        kde:stable/${version}/src/
use_xz              yes
checksums           rmd160  217854ce2004ccf70e0c76b99095a9b4abb96d24 \
                    sha256  d7dd97ad5ee005fa039696d88ce21a6ede2b5d795001f1d023899f5a848b6e94

depends_lib-append  port:kdelibs4 \
                    port:libcanberra \
                    port:pulseaudio

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       ${kde4.mirror}
livecheck.regex     (\\d+(\\.\\d+)+)
