# -*- 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                ykpers
version             1.20.0
revision            1
categories          security
license             BSD
maintainers         {cal @neverpanic} {snc @nerdling} openmaintainer
description         Easily personalize Yubico's USB keys.
long_description    Yubico's USB keys (called Yubikeys) need to be \
                    personalized. This project's purpose is to create a \
                    library that makes this an easy task.

homepage            https://developers.yubico.com/yubikey-personalization/
platforms           darwin
master_sites        https://developers.yubico.com/yubikey-personalization/Releases/

checksums           rmd160  398bdf2048def28e4b07e05b164be04f4c9c4b08 \
                    sha256  0ec84d0ea862f45a7d85a1a3afe5e60b8da42df211bb7d27a50f486e31a79b93 \
                    size    523134

depends_lib         port:libyubikey

# Not compatible with json-c 0.14-20200419
configure.args      --without-json

if {{$os.major} < 11} {
    patchfiles          patch-pre-Lion-strnlen.diff
}