# -*- 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 149837 2016-07-02 04:19:01Z ryandesign@macports.org $ PortSystem 1.0 PortGroup php 1.1 name php-gmagick license PHP categories php devel platforms darwin maintainers ryandesign openmaintainer php.branches 5.3 5.4 5.5 5.6 7.0 php.pecl yes php.pecl.prerelease yes if {[vercmp ${php.branch} 7] >= 0} { version 2.0.4RC1 revision 0 checksums rmd160 713ca6ec18e2410bbbb36679c10f7822fc86e3fa \ sha256 4ead19640bebebfa68be41dc0097a93a7bf9beb56ea82b27343dba8ea4c5ecfa } else { version 1.1.7RC3 revision 0 checksums rmd160 75dc13b0c4822a0e18faa30bdeb7140daa14b494 \ sha256 1d2a35811a29e0744e852dda526f30c8a0cba516ef611758dd5bd4837ecba1fd } description Provides a wrapper to the GraphicsMagick library long_description \ Gmagick is a php extension to create, modify and obtain meta information \ of images using the GraphicsMagick API. if {${name} ne ${subport}} { depends_lib-append port:GraphicsMagick configure.args-append --with-gmagick=${prefix} post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${docdir} if {[vercmp ${php.branch} 7] >= 0} { xinstall -m 644 ${worksrcpath}/README.md ${destroot}${docdir} } else { xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir} } } }