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

name                tcl-tls
version             2.0
categories          devel
license             Tcl/Tk
maintainers         nomaintainer

description         TLS OpenSSL extension to TCL.
long_description \
    TLS is an OpenSSL / RSA-bsafe Tcl extension that provides secure \
    connections on top of the Tcl socket mechanism.

homepage            https://core.tcl-lang.org/tcltls/
master_sites        ${homepage}uv/
distname            tcltls-${version}-src
worksrcdir          tcltls-20260121024900-5d3e3c3bf8

checksums           rmd160 e7aba1aab793cfad152b323de53c8a7618ff9435 \
                    sha256 f1fa46067984c4096976f04f131fdea54c07ba45ce2b03a0697a0ea801e3a23a

depends_lib         path:lib/libssl.dylib:openssl port:tcl

configure.args      --with-openssl-dir=${prefix} \
                    --with-tcl=${prefix}/lib \
                    --includedir=${prefix}/include/${name}

livecheck.url       ${homepage}uvlist?byage=1
livecheck.regex     tcltls-(\[\\d\\.\]+\\d+)
