# $Id: Portfile 96950 2012-08-22 18:21:16Z blair@macports.org $

PortSystem 1.0
                
name            ilmbase
version         1.0.2
categories      graphics
license         BSD
maintainers     blair
description     OpenEXR ILM Base libraries
long_description \
    OpenEXR is a high dynamic-range (HDR) image file format developed \
    by Industrial Light & Magic for use in computer imaging applications.
homepage        http://www.openexr.com/
platforms       darwin
master_sites    http://savannah.nongnu.org/download/openexr

checksums       sha1    fe6a910a90cde80137153e25e175e2b211beda36 \
                rmd160  40aed65079ee174be8ed237e5def941ae2b761b3

depends_build   port:libtool port:gsed

patchfiles      patch-configure

configure.args  --mandir=${prefix}/share/man \
                --infodir=${prefix}/share/info

post-configure {
    copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
}

test.run        yes
test.target     check

livecheck.type  regex
livecheck.url   ${homepage}downloads.html
livecheck.regex $name-(\\d+(?:\\.\\d+)*)
