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

# strndup, CLOCK_MONOTONIC
legacysupport.newest_darwin_requires_legacy 15

github.setup        upa mscp 0.2.1 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  2901efb16a5b001a8bdef924fc366622244b67c0 \
                    sha256  ea9aa82d3c055285705e39cbf1af3f02de33b6a1c767fc06f6dc91f36ddba4bc \
                    size    900419

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

# 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
