# $Id: Portfile 56353 2009-08-26 13:57:21Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       php5extension 1.0

php5extension.setup             oracle 5.3.0 bundled
php5extension.use_phpize        no
categories-append               databases
platforms                       darwin
maintainers                     ryandesign

description                     a PHP interface to Oracle, including the oci8 \
                                and pdo_oci extensions

long_description                ${description}

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

depends_build-append            port:autoconf213

depends_lib-append              port:oracle-instantclient

patchfiles-append               patch-ext-pdo_oci-config.m4.diff

use_autoconf                    yes
autoconf.cmd                    ${prefix}/bin/autoconf213

configure.args-append           --enable-pdo \
                                --with-oci8=shared,instantclient,${prefix}/lib/oracle \
                                --with-pdo-oci=shared,instantclient,${prefix}/lib/oracle,10.1

use_parallel_build              yes
