# -*- 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 116576 2014-01-29 07:03:01Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     imagick 3.1.2 pecl
revision                1
categories-append       graphics
platforms               darwin
maintainers             ryandesign openmaintainer
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               rmd160  6f2cfba26dbdf7ede8d14ca9c97cf2b38a921cd0 \
                        sha256  528769ac304a0bbe9a248811325042188c9d16e06de16f111fee317c85a36c93

depends_lib-append      port: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}
}
