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

github.setup            OpenSC libp11 0.4.21 libp11-
github.tarball_from     releases
revision                0
categories              security
license                 LGPL-2.1
maintainers             {mail.ru:nano103 @nano103} openmaintainer

description             Interface to access PKCS#11 objects.
long_description        libp11 is a library implementing a thin layer on top of PKCS#11 API \
                        to make using PKCS#11 implementations easier.

checksums               rmd160  08ed4f78d960f3fd977c7bb50a7d40594671e98b \
                        sha256  efdb523aef8613d447e6a2d38227d4b389866f4bcf4b503130acd7f759490847 \
                        size    713696

depends_build-append    path:bin/pkg-config:pkgconfig
depends_test-append     port:opensc \
                        port:softhsm

# p11_attr.c:167: error: 'for' loop initial declaration used outside C99 mode
compiler.c_standard     2011

# alignof is C23. Not necessary to build
configure.checks.implicit_int   no
configure.checks.implicit_function_declaration.whitelist-append alignof

test.run                yes
test.target             check

post-destroot {
    xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
}
