# -*- 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                libu2f-host
version             1.1.10
revision            0
categories          security
platforms           darwin
maintainers         {l2dy @l2dy} openmaintainer
license             LGPL-2.1+

description         Yubico Universal 2nd Factor (U2F) Host C Library

long_description    Libu2f-host provides a C library and command-line tool \
                    that implements the host-side of the U2F protocol. There \
                    are APIs to talk to a U2F device and perform the U2F Register \
                    and U2F Authenticate operations.

homepage            https://developers.yubico.com/${name}/
master_sites        https://developers.yubico.com/${name}/Releases/

use_xz              yes

checksums           rmd160  54239f2e9ec89c52238f35657021f35df94ac68c \
                    sha256  4265789ec59555a1f383ea2d75da085f78ee4cf1cd7c44a2b38662de02dd316f \
                    size    471676

depends_build       port:pkgconfig
depends_lib         port:json-c \
                    port:hidapi

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}

patchfiles          patch-u2fmisc-macro-fix.diff

notes "
This project is deprecated and is no longer being maintained.
libfido2 is a new project with support for U2F and FIDO2.
"