# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0
PortGroup           app 1.0
PortGroup           qt5 1.0

name                qdmr
maintainers         @hmatuschek {ra1nb0w @ra1nb0w} openmaintainer
version             0.11.3

categories          science
license             GPL-3
platforms           darwin macosx

description         qDMR is a codeplug programming software (CPS) for cheap DMR radios.
long_description    ${description}: \
        qDMR is a feature-rich codeplug programming tool for cheap DMR radios.\
        Currently supported radios are: Radioddity/Baofen RD-5R, TyT MD-UV390, \
        Retevis RT3S, OpenGD77 firmware (GD77,RD-5R,DM-1801), Anytone AT-D878UV, \
        Anytone AT-D868UVE, Anytone AT-D878UVII, Anytone AT-D578UV.

homepage            https://dm3mat.darc.de/qdmr/

github.setup        hmatuschek qdmr ${version} v

checksums           rmd160  a7c7cd08e9e098798f684aa9ff0826fce2a1e3d9 \
                    sha256  c1e6549c8074984f5437670cbb42e4734444b8308960155a7e726776108cccc3 \
                    size    6579311

qt5.depends_build_component \
    qttools

qt5.depends_component \
    qtserialport \
    qtlocation
 
depends_lib \
    path:lib/pkgconfig/libusb-1.0.pc:libusb \
    port:yaml-cpp

configure.args-append \
    -DBUILD_TESTS=OFF \
    -DBUILD_DOCS=OFF \
    -DBUILD_MAN=OFF

app.create yes
app.name qDMR
app.executable qdmr
app.icon dist/qdmr.png
app.retina yes
