aboutsummaryrefslogtreecommitdiffstats
path: root/databases/php5-sqlite
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-12-10 03:41:41 +0800
committerale <ale@FreeBSD.org>2005-12-10 03:41:41 +0800
commit64d7c22a188ebc9690c6908f3ad9e2ce700fac8c (patch)
tree73b330d5927b3d8b74060ddca63164c1989b6d1b /databases/php5-sqlite
parent7ef24e382bde059ef7d7396d80f1136a0aae090e (diff)
downloadfreebsd-ports-gnome-64d7c22a188ebc9690c6908f3ad9e2ce700fac8c.tar.gz
freebsd-ports-gnome-64d7c22a188ebc9690c6908f3ad9e2ce700fac8c.tar.zst
freebsd-ports-gnome-64d7c22a188ebc9690c6908f3ad9e2ce700fac8c.zip
Finally update to PHP 5.1.1 release! (And remove unsupported extensions)
Diffstat (limited to 'databases/php5-sqlite')
-rw-r--r--databases/php5-sqlite/files/patch-config.m447
1 files changed, 47 insertions, 0 deletions
diff --git a/databases/php5-sqlite/files/patch-config.m4 b/databases/php5-sqlite/files/patch-config.m4
new file mode 100644
index 000000000000..5e421eda24ae
--- /dev/null
+++ b/databases/php5-sqlite/files/patch-config.m4
@@ -0,0 +1,47 @@
+--- config.m4.orig Tue Jun 14 03:44:16 2005
++++ config.m4 Thu Dec 8 14:15:18 2005
+@@ -48,14 +48,6 @@
+
+
+ if test "$PHP_SQLITE" != "no"; then
+- if test "$PHP_PDO" != "no"; then
+- PHP_CHECK_PDO_INCLUDES([], [AC_MSG_WARN([Cannot find php_pdo_driver.h.])])
+- if test -n "$pdo_inc_path"; then
+- AC_DEFINE([PHP_SQLITE2_HAVE_PDO], [1], [Have PDO])
+- pdo_inc_path="-I$pdo_inc_path"
+- fi
+- fi
+-
+ if test "$PHP_SQLITE" != "yes"; then
+ SEARCH_PATH="/usr/local /usr"
+ SEARCH_FOR="/include/sqlite.h"
+@@ -85,13 +77,12 @@
+ -L$SQLITE_DIR/$PHP_LIBDIR -lm
+ ])
+ SQLITE_MODULE_TYPE=external
+- PHP_SQLITE_CFLAGS=$pdo_inc_path
+ sqlite_extra_sources="libsqlite/src/encode.c"
+ else
+ # use bundled library
+ PHP_PROG_LEMON
+ SQLITE_MODULE_TYPE=builtin
+- PHP_SQLITE_CFLAGS="-I@ext_builddir@/libsqlite/src $pdo_inc_path"
++ PHP_SQLITE_CFLAGS="-I@ext_builddir@/libsqlite/src"
+ sqlite_extra_sources="libsqlite/src/opcodes.c \
+ libsqlite/src/parse.c libsqlite/src/encode.c \
+ libsqlite/src/auth.c libsqlite/src/btree.c libsqlite/src/build.c \
+@@ -107,13 +98,12 @@
+ libsqlite/src/where.c libsqlite/src/trigger.c"
+
+ PHP_ADD_EXTENSION_DEP(sqlite, spl)
+- PHP_ADD_EXTENSION_DEP(sqlite, pdo)
+ fi
+
+ dnl
+ dnl Common for both bundled/external
+ dnl
+- sqlite_sources="sqlite.c sess_sqlite.c pdo_sqlite2.c $sqlite_extra_sources"
++ sqlite_sources="sqlite.c sess_sqlite.c $sqlite_extra_sources"
+ PHP_NEW_EXTENSION(sqlite, $sqlite_sources, $ext_shared,,$PHP_SQLITE_CFLAGS)
+ PHP_ADD_MAKEFILE_FRAGMENT
+ PHP_SUBST(SQLITE_SHARED_LIBADD)