# -*- 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
categories-append graphics
maintainers {ryandesign @ryandesign} openmaintainer
php.branches 5.3 5.4 5.5 5.6
description MagickWand for PHP
long_description This module enables PHP access to the ImageMagick MagickWand API
homepage http://www.magickwand.org/
master_sites ${homepage}download/php/ \
${homepage}download/php/legacy/
distname MagickWandForPHP-${version}
worksrcdir [join [lrange [split ${distname} -] 0 1] -]
checksums rmd160 486c3c4cc63bd8a8c59b5dc7659f1130cd27d111 \
sha256 05e5fe5bc52ab9169228bbbde38b222208d1ae19db718b66d2c7ac4180847727
if {${name} ne ${subport}} {
depends_lib-append port:ImageMagick
patchfiles patch-magickwand.h.diff
reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/magickwand.h
configure.args --with-magickwand=${prefix}
livecheck.url [lindex ${master_sites} 0]
livecheck.regex MagickWandForPHP-(\[0-9.-\]+)${extract.suffix}