# -*- 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

PortSystem              1.0
PortGroup               php 1.1

name                    php-imagick
epoch                   1
version                 3.4.3
revision                1
categories-append       graphics
platforms               darwin
maintainers             {ryandesign @ryandesign} openmaintainer
license                 PHP-3.01

php.branches            5.3 5.4 5.5 5.6 7.0 7.1 7.2
php.pecl                yes

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  1a0a9f607917c4e80fd2c06cccb91386a1ba2c2e \
                        sha256  1f3c5b5eeaa02800ad22f506cd100e8889a66b2ec937e192eaaa30d74562567c

if {${name} ne ${subport}} {
    depends_build-append \
                        port:pkgconfig
    
    depends_lib-append  port:ImageMagick
    
    configure.args      --with-imagick=${prefix}
    
    use_parallel_build  yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
        xinstall -m 644 -W ${worksrcpath} CREDITS ${destroot}${subport}
        copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
    }
}