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

github.setup        latchset pkcs11-provider 1.0 v
github.tarball_from releases
checksums           rmd160  d4cdbff60a62536e3c743554a908ab9ebe6c276f \
                    sha256  843d01f660d6d9cb429e90b272e85da2ae694d9a2df4dcc5028bf73b2417f653 \
                    size    162076
use_xz              yes

maintainers         {cal @neverpanic} openmaintainer

categories          security crypto
license             Apache-2.0
description         A pkcs#11 provider for OpenSSL 3.0+
long_description    \
    An OpenSSL 3 provider to access Hardware or Software Tokens using the \
    PKCS#11 Cryptographic Token Interface

# NSS, softhsm, p11-kit, gnutls, and opensc are used for testing, but detection happens at build time
depends_build       port:gnutls \
                    port:nss \
                    port:opensc \
                    port:p11-kit \
                    port:pkgconfig \
                    port:softhsm

depends_lib         port:openssl3

test.run            yes

github.livecheck.branch main