# $Id: Portfile 64458 2010-03-06 17:54:57Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       php5extension 1.0

php5extension.setup             {sqlite sqlite3 pdo_sqlite} 5.3.2 bundled
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     46f500816125202c48a458d0133254a4 \
                                sha1    79ea4ee3da3a7542d1e348ac963a5b38bcbb4b6b \
                                rmd160  60a8aac0d51511ecaf8dcad9d31bdf072c0c99cf

# 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

post-extract {
    move ${worksrcpath}/ext/sqlite3/config0.m4 ${worksrcpath}/ext/sqlite3/config.m4
}

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

use_parallel_build              yes
