# $Id: Portfile 65166 2010-03-23 07:10:25Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     imagick 2.3.0 pecl
revision                3
categories-append       graphics
platforms               darwin
maintainers             ryandesign

description             PHP extension to create and modify images with \
                        ImageMagick

long_description        Imagick is a native PHP extension for creating and \
                        modifying images using the ImageMagick API

checksums               md5     1493a21b37e209cc59764ac1ca2a1af9 \
                        sha1    708dbb6cc5239c327b3b2154cb8decf6c0150a6d \
                        rmd160  84750c9f83fdc2341b1eb410de4bbc870e9c5961

depends_lib-append      path:bin/MagickWand-config:ImageMagick

configure.args          --with-imagick=${prefix}

use_parallel_build      yes

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CREDITS ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${destroot}${prefix}/share/examples
    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
}
