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

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

name                unixcw
version             3.6.1
revision            0
categories          audio
license             GPL-2+
maintainers         {makr @mohd-akram} openmaintainer

description         library and applications for Morse code

long_description    unixcw is an umbrella project for a library and for a few \
                    applications related to Morse code.

homepage            https://unixcw.sourceforge.net
master_sites        sourceforge:unixcw

checksums           rmd160  b01e3dce04b97cc4191cfef0642fd938e3ab1977 \
                    sha256  0af83855214bf90b4c0d149221884ab4458f3857c38972d428daebf3badd6e32 \
                    size    975795

depends_build       port:gettext

depends_lib         port:gettext-runtime \
                    port:ncurses

depends_run         port:pulseaudio

patchfiles          patch-configure.diff \
                    patch-src-cwutils-lib-random.diff \
                    patch-src-libcw-makefile.diff \
                    patch-src-libcw-libcw-pa.diff

configure.args-append \
                    --disable-xcwcp

if {${os.platform} ne "darwin" || ${os.major} > 10} {
    PortGroup       qt5 1.0

    configure.args-delete \
                    --disable-xcwcp
}
