# $Id: Portfile 80012 2011-07-01 22:08:05Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

php5extension.setup gmagick 1.0.9b1 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     Provides a wrapper to the GraphicsMagick library

long_description \
    Gmagick is a php extension to create, modify and obtain meta information \
    of images using the GraphicsMagick API.

checksums       sha1    7e4ddbb55c4393acee7e5d06433baa213935b880 \
                rmd160  c2edd3c345f631760b8dbde6923e38608dc22736

depends_lib-append \
    port:GraphicsMagick

archcheck.files \
    lib/libGraphicsMagickWand.dylib

configure.args-append \
    --with-gmagick=${prefix}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
}

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