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

github.setup            paolostivanin libcotp 3.1.1 v
revision                0
categories              security devel crypto
maintainers             nomaintainer
license                 Apache-2
description             C library that generates TOTP and HOTP
long_description        {*}${description}
checksums               rmd160  bb73eda9d51206a1adb8fcb571fd8c587749a0ad \
                        sha256  9b5778b8e38d9b0c33d6331ec980094b0035bf53e6064bbcc2ed988b0d4b3d13 \
                        size    20828
github.tarball_from     archive

depends_build-append    path:bin/pkg-config:pkgconfig
depends_lib-append      port:libgcrypt

compiler.cxx_standard   2011

# TODO: tests require criterion, which is not yet in Macports: https://github.com/Snaipe/Criterion
configure.args-append   -DBUILD_TESTING=OFF
