# $Id$

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

php5extension.setup imlib2 0.1.00 pecl
license         PHP
conflicts       php5-cairo_wrapper
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     Provides an image manipulation interface using libimlib2

long_description \
    imlib2 is a very fast image manipulation library, but without the support \
    for as many image formats as other libraries such as imagemagick. This \
    extension is experimental. It's been tested on a number of Linux installs, \
    but nothing else.

checksums       md5     8bc2d64a7f8897e914f1e1b1f8e7b554 \
                sha1    e4bbb37601cb6122624b66832dd11deba06656df \
                rmd160  36ecf7b1d4f0872b0597db09c0410fa429e4bf21

patchfiles      patch-imlib2.c.diff

depends_lib-append \
    port:imlib2

archcheck.files \
    lib/libImlib2.dylib

test.run yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} CREDITS readme.txt docs/api.txt \
        ${destroot}${docdir}
}

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}