# -*- 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
PortGroup           boost 1.0

github.setup        msgpack msgpack-c 7.0.0 cpp-
github.tarball_from archive
name                msgpack-cpp
revision            0

conflicts           msgpack0 msgpack1 msgpack2 msgpack3

categories          devel
platforms           any
supported_archs     noarch
license             Boost-1
maintainers         nomaintainer

description         MessagePack implementation for C++
long_description    MessagePack is a binary-based efficient data interchange \
                    format that is focused on high performance. \
                    It is like JSON, but very fast and small.

homepage            https://msgpack.org/

checksums           rmd160  b5a38c1a179c72358ee277c3883d65c275610eb9 \
                    sha256  070881ebea9208cf7e731fd5a46a11404025b2f260ab9527e32dfcb7c689fbfc \
                    size    474883

configure.args-append \
                   -DMSGPACK_BUILD_TESTS=OFF \
                   -DCMAKE_PREFIX_PATH=[boost::install_area]

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} COPYING NOTICE QUICKSTART-CPP.md \
        README.md CHANGELOG.md LICENSE_1_0.txt ${destroot}${docdir}
}
