# $Id: Portfile 64827 2010-03-16 09:17:10Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     gd 5.3.2 bundled
revision                1
categories-append       graphics
platforms               darwin
maintainers             ryandesign

description             a PHP interface to the gd library

long_description        ${description}

checksums               md5     46f500816125202c48a458d0133254a4 \
                        sha1    79ea4ee3da3a7542d1e348ac963a5b38bcbb4b6b \
                        rmd160  60a8aac0d51511ecaf8dcad9d31bdf072c0c99cf

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}
}
