# $Id: Portfile 64763 2010-03-15 16:31:33Z nox@macports.org $

PortSystem 1.0
PortGroup  muniversal 1.0

name                    libmng
version                 1.0.10
revision                2
categories              graphics
maintainers             blair openmaintainer
description             Library for read MNG, an extension to PNG.
long_description	This library extends PNG support to include Multiple \
			Network Graphics this adds animation capabilitys to \
			PNG.
homepage                http://libmng.sourceforge.net/
master_sites            sourceforge
platforms               darwin
checksums               md5 a464ae7d679781beebdf7440d144b7bd \
                        sha1 78ad516a1de79d00de720bf2a7c9afea2c896b09 \
                        rmd160 ed09e537ebb129f5e13cba56d9d2c2a106955393

depends_build           port:automake port:autoconf port:libtool

depends_lib             port:jpeg port:lcms port:zlib

pre-configure {
    system "cd '${worksrcpath}' && ln -s makefiles/configure.in ."
    system "cd '${worksrcpath}' && ln -s makefiles/acinclude.m4 ."
    system "cd '${worksrcpath}' && ln -s makefiles/Makefile.am ."
    system "cd '${worksrcpath}' && LIBTOOLIZE=glibtoolize autoreconf -fi"
}

configure.args  --with-jpeg=${prefix} \
                --with-lcms=${prefix} \
                --with-zlib=${prefix}

livecheck.type  freshmeat
