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

# getline
legacysupport.newest_darwin_requires_legacy 10

github.setup        MisterTea EternalTerminal 6.2.11 et-v
github.tarball_from archive
revision            0
name                et
categories          net
license             Apache-2
maintainers         {l2dy @l2dy} openmaintainer
description         a remote shell that automatically reconnects without interrupting the session
long_description    Eternal Terminal (ET) is {*}${description}.

checksums           rmd160  4542539eb3546d839c66b34ab8cb0a92df89200e \
                    sha256  e8e80800babc026be610d50d402a8ecbdfbd39e130d1cfeb51fb102c1ad63b0f \
                    size    28959778

depends_lib-append  port:libsodium \
                    port:protobuf3-cpp \
                    path:lib/libssl.dylib:openssl \
                    port:zlib

compiler.cxx_standard \
                    2017

patchfiles          patch-src-base-Headers.hpp.diff

configure.args      -DDISABLE_VCPKG:BOOL=ON \
                    -DDISABLE_SENTRY:BOOL=ON \
                    -DBUILD_TESTING:BOOL=OFF

if {${os.platform} eq "darwin" && ${os.major} < 19} {
    depends_lib-append port:boost
}
