# $Id: Portfile 44941 2009-01-04 23:51:12Z ryandesign@macports.org $

PortSystem              1.0

name                    mscgen
version                 0.13
categories              graphics
maintainers             landonf
homepage                http://www.mcternan.me.uk/mscgen/
platforms               darwin

description             Message Sequence Chart image generator

long_description        Mscgen is a small program that parses Message Sequence \
                        Chart descriptions and produces PNG, SVG, EPS or \
                        server side image maps (ismaps) as the output. Message \
                        Sequence Charts (MSCs) are a way of representing \
                        entities and interactions over some time period \
                        and are often used in combination with SDL. 

master_sites            ${homepage}/software/
distname                ${name}-src-${version}

checksums               md5     12fc1275458449b112d938109b91674a \
                        sha1    aff63d3614c9a1af99ec3d5ef73523826415954e \
                        rmd160  7c787821e80ce85c26816e314272342f61708ffb

depends_lib             port:gd2

worksrcdir              ${name}/src

use_configure           no
build.target            all-osx
build.args              CFLAGS="-I. -I../parser -I${prefix}/include -DPACKAGE_VERSION=${version}"

destroot {
    file copy ${worksrcpath}/../bin/mscgen ${destroot}/${prefix}/bin
}
