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

boost.version       1.81

github.setup        NikolaDucak caps-log 1.2.1
revision            1
categories          sysutils
license             MIT
maintainers         {NikolaDucak @NikolaDucak} \
                    {@barracuda156 gmail.com:vital.had} \
                    openmaintainer
description         Small TUI journaling tool
long_description    ${name} is a small, terminal-based journaling tool.
checksums           rmd160  a2e931d7e8b56a38c030b4f6a40a6c9aa46a1ea1 \
                    sha256  10090ffc24ae28b7c466999d47c46c649daacbac86107d909d78bafef0e012d7 \
                    size    4940420
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} \
                    path:lib/pkgconfig/libgit2.pc:libgit2

compiler.cxx_standard   2023

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON

if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} eq "libc++"} {
    # filesystem
    PortGroup       legacysupport 1.1

    legacysupport.newest_darwin_requires_legacy 18
    legacysupport.use_mp_libcxx yes
}
