# -*- 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.9 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  8155a5831263df734725b7229bcfa5187d744cc9 \
                    sha256  13bfb2722b011b5f0a28fa619508deca96deec9eee5e42b922add0c166d8185a \
                    size    25948460

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
}
