# $Id: Portfile 56355 2009-08-26 13:59:28Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       php5extension 1.0

php5extension.setup             sqlite 5.3.0 bundled
revision                        1
php5extension.use_phpize        no
categories-append               databases
platforms                       darwin
maintainers                     ryandesign

description                     a PHP interface to SQLite, including the \
                                sqlite and pdo_sqlite extensions

long_description                ${description}

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

# Note that the sqlite extension uses the built-in sqlite2 libraries while the
# sqlite3 and pdo_sqlite extensions use the libraries from the sqlite3 port.

depends_lib-append              port:sqlite3

configure.args-append           --enable-pdo \
                                --with-sqlite=shared \
                                --with-sqlite3=shared,${prefix} \
                                --with-pdo-sqlite=shared,${prefix} \
                                --enable-sqlite-utf8

use_parallel_build              yes
