# -*- 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.20 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  748473f6cc09fecf6b93e04dab772662a076fb5c \
                        sha256  a125e0310ff10c189fc1b32a9652101486ea94a6b07c677a30e90e3638d2db48 \
                        size    680288

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

test.run                yes
test.target             check

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