# -*- 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           cmake 1.1
PortGroup           github 1.0
PortGroup           qt5 1.0

github.setup        Martchus syncthingtray 0.10.3 v
github.tarball_from archive
revision            0
categories          net
maintainers         {yan12125 @yan12125} openmaintainer
license             GPL-2
description         Tray application and Dolphin/Plasma integration for Syncthing.
long_description    ${description}
platforms           darwin

checksums           rmd160  743f0d8328eb1364bdd13453fa5d8537628ce802 \
                    sha256  6becc583e2bb5a0692cca934d64b76d015e5452e144456340260ab56c1920283 \
                    size    1531339

depends_build-append \
                    port:cpp-utilities \
                    port:qtutilities \
                    port:libicns

qt5.depends_component \
                    qtdeclarative

qt5.depends_build_component \
                    qttools

compiler.cxx_standard 2017

configure.args-append \
                    -DWEBVIEW_PROVIDER=none \
                    -DJS_PROVIDER=qml \
                    -DBUNDLE_INSTALL_DESTINATION=${applications_dir}

variant qtwebengine description {Build with QtWebEngine} {
    qt5.depends_component \
                    qtwebengine

    configure.args-replace -DWEBVIEW_PROVIDER=none -DWEBVIEW_PROVIDER=webengine
}