# -*- 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             {sqlite sqlite3 pdo_sqlite} 5.3.8 bundled
categories-append               databases
platforms                       darwin
maintainers                     ryandesign
license				PHP-3.01

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

long_description                ${description}

checksums                       rmd160  f18a18e2dfd7ea7885760eec2a05b3c4a15ad9db \
                                sha256  a1dd06fd5593e97d9a5bd9818d6501d28d3ee8f09b83f0ec78f7cdfc060f3ea2

# 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