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

PortSystem              1.0
PortGroup               github 1.0
PortGroup               cmake 1.1
PortGroup               legacysupport 1.1

github.setup            netxs-group vtm 0.9.99.69 v
github.tarball_from     archive
revision                0

categories              sysutils
license                 MIT
maintainers             nomaintainer

description             Monotty Desktopio - text-based desktop environment \
                        inside your terminal
long_description        ${name} is a terminal multiplexer with window manager \
                        and session sharing.

checksums               rmd160  31931c51de2ac63d67a10e615d011327302d4835 \
                        sha256  962e6265fba6889161f0820695dc21ce0c9fca1841a63b60e5189a044bb97b76 \
                        size    1899827

# Requires a compiler with full C++20 support
compiler.cxx_standard   2020
# Avoid Xcode Clang, due to build issues; likely fixable, but needs more investigation
compiler.blacklist-append \
                        {clang}

# Needed for std::filesystem and std::atomic_notify_all
legacysupport.newest_darwin_requires_legacy 19
legacysupport.use_mp_libcxx yes

if {[variant_isset debug]} {
    cmake.build_type    Debug
    configure.optflags  -O0
} else {
    # For non-debug, let project dictate optimization level
    # RelWithDebInfo uses O2; avoid Release, which enables O3
    cmake.build_type    RelWithDebInfo
    configure.optflags
}

notes "
Recommended to use it in a terminal with mouse\
and True Color support (e.g. iTerm2).
"
