# -*- 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        DaveGamble cJSON 1.7.19 v
name                [string tolower ${github.project}]
revision            0
categories          devel
maintainers         nomaintainer
license             MIT
description         Ultralightweight JSON parser
long_description    {*}${description} in ANSI C.
checksums           rmd160  f97be9fc42f575089ee017fc7b11fa5840a5028d \
                    sha256  7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562 \
                    size    356247
github.tarball_from archive

# https://github.com/DaveGamble/cJSON/issues/1012
patchfiles          patch-CMakeLists.txt

configure.args-append \
    -DBUILD_SHARED_AND_STATIC_LIBS=ON \
    -DENABLE_CJSON_UTILS=ON \
    -DENABLE_CJSON_TEST=OFF
