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

# TARGET_OS_OSX
legacysupport.newest_darwin_requires_legacy 14

name                libretls
version             3.8.1
revision            0
categories          devel
platforms           darwin
license             ISC
maintainers         {causal.agency:june @causal-agent} openmaintainer

description         libtls for OpenSSL
long_description    LibreTLS is a port of libtls from LibreSSL to OpenSSL. \
                    libtls is a new TLS library, designed to make it easier \
                    to write foolproof applications.

homepage            https://git.causal.agency/libretls/about/
master_sites        https://causal.agency/libretls/

checksums           rmd160  e41b0263096eb3d1098edb1839659d0e24dcc869 \
                    sha256  3bc9fc0e61827ee2f608e5e44993a8fda6d610b80a1e01a9c75610cc292997b5 \
                    size    432142

depends_lib         port:openssl

configure.args      --with-openssl=${prefix}
configure.checks.implicit_function_declaration.whitelist-append getpagesize

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\[0-9.\]+(p\[0-9\]+)?)${extract.suffix}
