PortSystem              1.0

name                    mscgen
version                 0.20
revision                1
categories              graphics
maintainers             nomaintainer
homepage                http://www.mcternan.me.uk/mscgen/
license                 GPL-2
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     65c90fb5150d7176b65b793f0faa7377 \
                        sha1    cb718587e5fda99ca8b36801c57ea794d07bf211 \
                        rmd160  07db2a2eb21b2138298ef07da0f81b4973dc3a4b

depends_lib             port:gd2

worksrcdir              ${name}-${version}

configure.env	      	GDLIB_CFLAGS=${configure.cflags} GDLIB_LIBS=-lgd
use_configure           yes
configure.args          --prefix=${prefix}

variant freetype description {Support FreeType} {
    depends_lib-append      port:freetype
    configure.args-append   --with-freetype
}
