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

github.setup        ArthurSonzogni rgb-tui 1.1 v
revision            0
categories          graphics sysutils
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Color-picker with a terminal UI
long_description    Create and get colors’ code from the terminal \
                    using a nice interface.
checksums           rmd160  8e0a395f1efc6cb0b390120940646b7ca38c9a6a \
                    sha256  34153d71d8371d3b363e5adefffc91fe5fc3539a2d954b54e8ba6694d879a304 \
                    size    1339285
github.tarball_from archive

set libfmt_ver      9

cmake.module_path-append \
                    ${prefix}/lib/libfmt${libfmt_ver}/cmake

depends_lib-append  port:FTXUI \
                    port:libfmt${libfmt_ver}

patchfiles-append   patch-CMakeLists.diff

compiler.cxx_standard   2017

# https://github.com/ArthurSonzogni/rgb-tui/issues/6
notes "
Not every Terminal application supports true color.\
To have a meaningful experience with this port you need one.\
Consider installing vte port or some alternative.
"
