# $Id: Portfile 63926 2010-02-18 06:43:23Z ryandesign@macports.org $

PortSystem                  1.0
PortGroup                   muniversal 1.0

name                        ming
version                     0.4.3
categories                  multimedia graphics
platforms                   darwin
maintainers                 ryandesign
homepage                    http://www.libming.org/
master_sites                sourceforge
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                   md5     db6bae65d000e2f2ac78583fd453f99a \
                            sha1    e51a1c9de7efcd6b20f727a824cfbf323b6f5e6f \
                            rmd160  38a495250c7f4ff3335ebd08df2984719a2f046b

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

use_parallel_build          yes

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        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.url               http://sourceforge.net/projects/ming/files/
livecheck.type              regex
livecheck.regex             ${name}-(\[0-9.\]+)\\.tar
