# -*- 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.0 PortGroup cxx11 1.1 name jsoncpp categories devel platforms darwin maintainers {michaelld @michaelld} openmaintainer license MIT description JSON C++ library long_description JSON data format manipulation C++ library subport jsoncpp-devel {} if {${subport} eq ${name}} { # release github.setup open-source-parsers jsoncpp 1.9.2 checksums rmd160 34374a13fadc93e42b26c60282029a5c1f113023 \ sha256 6bc246534c35df7c9b200869b6e8536c9b0024e6c11f3023541f7fdd88794168 \ size 211398 revision 0 conflicts jsoncpp-devel # temporary patch to fix build errors patchfiles-append patch-fix-build.release.diff patch.pre_args -p1 } else { # devel github.setup open-source-parsers jsoncpp a3c8642886b348d4f8fcb5384266c3a94ffe66b3 version 20191203-[string range ${github.version} 0 7] checksums rmd160 34f9089fb8e7efd6d4324a8edbd56c19a03ffc4e \ sha256 c69af6d2b71e219c8d5dfc1273ea3ccf52631d3cebeb12ae7c8317560d0aee6d \ size 212140 revision 0 conflicts jsoncpp long_description ${description}: \ This port follows the GIT master version of ${name}, which is typically updated every few days to weeks. # temporary patch to fix variable type to be same as others patchfiles-append patch-src_test_lib_json_main.cpp.diff patch.pre_args -p1 } cmake.out_of_source yes configure.args-append \ -DBUILD_SHARED_LIBS=ON \ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ -DCCACHE_FOUND=NO