# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 85176 2011-10-10 19:44:18Z snc@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     imagick 3.0.1 pecl
categories-append       graphics
platforms               darwin
maintainers             ryandesign
license                 PHP-3.01

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               sha1    64dd5c8ff4d43d94e65c3b35ac0b439676ecc746 \
                        rmd160  854fafe039e85a43bc1e53c00147099620a0034a

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}
}
