# $Id: Portfile 56248 2009-08-25 18:25:06Z jmr@macports.org $

PortSystem 1.0

name            enblend
version         3.2
categories      graphics
maintainers     nomaintainer
description     a tool to composite images
long_description    Enblend is a tool to composite overlapping images \
                with invisible (or very difficult to see) seams. Enfuse is a \
                tool for automatic exposure and contrast blending.
homepage        http://enblend.sourceforge.net/
platforms       darwin
master_sites    sourceforge:${name}
distname        enblend-enfuse-${version}
checksums       md5 9b6ebaf672f5103c633a53c9723d99c3 \
                sha1 e44226ec6759dd3e6dcf46bb34848b64536ad495 \
                rmd160 7a9b0037b821ac287327477d52665372d0850dbb

depends_lib     port:boost \
                port:lcms \
                port:libpng \
                port:libxmi \
                port:mesa \
                port:openexr

configure.args  --mandir=${prefix}/share/man \
                --enable-image-cache=yes

post-destroot {
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS ChangeLog COPYING \
        NEWS README TODO VIGRA_LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}

platform macosx {
    depends_lib-delete port:mesa
    depends_lib-append port:glew
    configure.args-append --with-apple-opengl-framework
}

livecheck.regex   {(?i)<title>enblend-enfuse enblend-enfuse-(.*) released.*</title>}
