# -*- 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 107066 2013-06-17 11:15:46Z ryandesign@macports.org $

PortSystem                  1.0
PortGroup                   muniversal 1.0

# Keep relevant lines in sync between ming and php-ming.

name                        ming
version                     0.4.5
categories                  multimedia graphics
platforms                   darwin
maintainers                 ryandesign
license                     {GPL-2 LGPL-2.1}
homepage                    http://www.libming.org/
master_sites                sourceforge:project/ming/Releases
use_bzip2                   yes

description                 an SWF output library

long_description            Ming is an SWF ("Flash") file format output \
                            library. It is written in C, with wrappers for \
                            C++, Python, and PHP, plus rudimentary support \
                            for Ruby and Perl.

checksums                   rmd160  cd28c115a1eb37442f1b9c507ce3fad7837a6d54 \
                            sha256  82da089bdfc3a7fcb732dc11c11a35003ee270d5102d4043d61ea69834239aeb

depends_lib                 port:giflib \
                            port:libpng \
                            port:zlib \
                            port:freetype

patchfiles                  patch-src-libming.h.diff

configure.args              --disable-silent-rules

use_parallel_build          yes

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        HISTORY \
        LICENSE \
        LICENSE_GPL2 \
        NEWS \
        README \
        TODO \
        ${docdir}
}

# You can build ming as a php, perl and python module
# Please do this with separate Portfiles and not by
# variants.

livecheck.regex             /${name}-(\[0-9.\]+)${extract.suffix}
