# -*- 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               php5extension 1.0

php5extension.setup     gd 5.3.8 bundled
categories-append       graphics
platforms               darwin
maintainers             ryandesign
license				PHP-3.01
license                 PHP-3.01

description             a PHP interface to the gd library

long_description        ${description}

checksums               rmd160  f18a18e2dfd7ea7885760eec2a05b3c4a15ad9db \
                        sha256  a1dd06fd5593e97d9a5bd9818d6501d28d3ee8f09b83f0ec78f7cdfc060f3ea2

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