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

PortSystem      1.0
PortGroup       php 1.1

name            php-imlib2
version         0.1.00
revision        1
license         PHP
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes
php.pecl.prerelease yes

description     Provides an image manipulation interface using libimlib2

long_description \
    imlib2 is a very fast image manipulation library, but without the support \
    for as many image formats as other libraries such as imagemagick. This \
    extension is experimental. It's been tested on a number of Linux installs, \
    but nothing else.

checksums       md5     8bc2d64a7f8897e914f1e1b1f8e7b554 \
                sha1    e4bbb37601cb6122624b66832dd11deba06656df \
                rmd160  36ecf7b1d4f0872b0597db09c0410fa429e4bf21

if {${name} ne ${subport}} {
    depends_lib-append  port:imlib2
    
    patchfiles          patch-imlib2.c.diff
    
    test.run            yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} CREDITS readme.txt docs/api.txt \
            ${destroot}${docdir}
    }
}