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

github.setup        PJK libcbor 0.13.0 v
github.tarball_from archive
revision            0

categories          devel
maintainers         {@trodemaster icloud.com:manuals-unread2u} openmaintainer

license             MIT
description         library for parsing and generating CBOR
long_description    {*}${description}, the general-purpose schema-less binary data format.

checksums           rmd160  ad9bb702516b6d055650a1e3f90335f33005e97b \
                    sha256  95a7f0dd333fd1dce3e4f92691ca8be38227b27887599b21cd3c4f6d6a7abb10 \
                    size    299917
                    
configure.args-append    -DBUILD_SHARED_LIBS=ON

variant tests description {enable tests} {
    depends_test-append         port:cmocka
    configure.args-append       -DWITH_TESTS=ON
    configure.pre_args-replace  -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                                -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
    test.run            yes
    test.target         test
}
