# -*- 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
# $Id: Portfile 119540 2014-04-29 19:30:19Z devans@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        msgpack msgpack-c 0.5.8 cpp-

name                msgpack
categories          devel
maintainers         hum openmaintainer

description         Library for a binary-based efficient data interchange format
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            http://msgpack.org/
platforms           darwin
license             Apache-2

checksums           rmd160  fc7073b37f8ca30ab585f8b5c4ecf3b21e4e4217 \
                    sha256  4dc77dd9ca11920db4b91de53a45eb79e2d24be46f0b2d08af9b16b88ade3b80

depends_build       port:autoconf port:automake port:libtool

pre-configure {
    system -W ${worksrcpath} "./bootstrap"
}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog LICENSE NOTICE README README.md \
        ${destroot}${docdir}
}
