# $Id: Portfile 55041 2009-08-06 09:41:03Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     gd 5.3.0 bundled
categories-append       graphics
platforms               darwin
maintainers             ryandesign

description             a PHP interface to the gd library

long_description        ${description}

checksums               md5     846760cd655c98dfd86d6d97c3d964b0 \
                        sha1    934700941d216c453376e3bf24347041cf12c6dc \
                        rmd160  9a71b74052b0ca515f2ddf95c051b47a73d33f44

depends_lib-append      port:freetype \
                        port:jpeg \
                        port:libpng \
                        port:zlib

configure.args-append   --with-freetype-dir=${prefix} \
                        --with-jpeg-dir=${prefix} \
                        --with-png-dir=${prefix} \
                        --with-zlib-dir=${prefix} \
                        --enable-gd-native-ttf

use_parallel_build      yes

variant t1lib description {Add PostScript Type 1 font support with t1lib} {
    depends_lib-append \
        port:t1lib
    configure.args-append \
        --with-t1lib=${prefix} \
}
