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

name                fzssh
version             1.3.0
revision            0

categories          net devel
maintainers         nomaintainer
license             AGPL-3+

description         SSH/SFTP library
long_description    ${name} is a {*}${description} based on libfilezilla.

homepage            https://fzssh.filezilla-project.org
master_sites        https://sources.archlinux.org/other/packages/fzssh

use_xz              yes

checksums           rmd160  bd8216ffe59940b14ba8e33d8f1cd66c0ea07e88 \
                    sha256  864582b203726588b5a16d86141ff95ab77d2399762febbe1fded92e4f047996 \
                    size    114768

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:argon2 \
                    port:gmp \
                    port:libfilezilla \
                    port:nettle

patchfiles          clocale.patch

compiler.cxx_standard   2020

# ___atomic_load_8
if {[string match *gcc* ${configure.compiler}] && ${configure.build_arch} in [list arm i386 ppc]} {
    configure.ldflags-append \
                    -latomic
}
