# -*- 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            DaveGamble cJSON 1.7.18 v
github.tarball_from     archive
name                    libcjson
revision                0

checksums               rmd160  0cc139eae610648992356b85020b2346b5d35f3a \
                        sha256  3aa806844a03442c00769b83e99970be70fbef03735ff898f4811dd03b9f5ee5 \
                        size    354726

license                 MIT
categories              devel
maintainers             nomaintainer

description             ultralightweight JSON parser in ANSI C

long_description        ${name} is an {*}${description}.

patchfiles              AppleClang.patch \
                        disable-werror.diff

variant tests description "Enable testing" {
    test.run            yes
    configure.pre_args-replace  -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                                -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
}
