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

github.setup        upa mscp 0.2.3 v
github.tarball_from releases
revision            0

description         multi-threaded scp

long_description    \
    mscp, a variant of scp, copies files over multiple SSH (SFTP) connections \
    by multiple threads.

categories          net
installs_libs       no
license             GPL-3.0
maintainers         {@lasmarois nicomarois.com:mail} \
                    openmaintainer

checksums           ${distname}${extract.suffix} \
                    rmd160  8d8c215937836693c0bad12df7e1d92e596780b0 \
                    sha256  f434fa473ea76423bc8e169e121162c7752ee5f80ea284656627c5e551b5f1eb \
                    size    1005763

cmake.build_type    Release

depends_build-append \
                    path:bin/doxygen:doxygen \
                    path:bin/pkg-config:pkgconfig \
                    port:python312

depends_lib-append  path:lib/libssl.dylib:openssl \
                    port:kerberos5 \
                    port:libcomerr \
                    port:zlib

# strndup, CLOCK_MONOTONIC
legacysupport.newest_darwin_requires_legacy 15

# fileops.c:113: error: thread-local storage not supported for this target
compiler.thread_local_storage yes

configure.args-append \
                    -DPython_EXECUTABLE=${prefix}/bin/python3.12
