aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2012-05-16 09:46:51 +0000
committerFlorian Smeets <flo@FreeBSD.org>2012-05-16 09:46:51 +0000
commit902a0675beeba6c01a038f9594a0c532079fd2f2 (patch)
treee640f9d726eb930319bafe09a6173a5b67843921 /databases
parentc76d4dd7170ff14ee3d83458ff9f89cdbc7a5694 (diff)
downloadports-902a0675beeba6c01a038f9594a0c532079fd2f2.tar.gz
ports-902a0675beeba6c01a038f9594a0c532079fd2f2.zip
Notes
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile17
-rw-r--r--databases/php53-dba/Makefile14
-rw-r--r--databases/php53-dba/files/patch-config.m462
-rw-r--r--databases/php53-interbase/Makefile14
-rw-r--r--databases/php53-mssql/Makefile14
-rw-r--r--databases/php53-mysql/Makefile14
-rw-r--r--databases/php53-mysqli/Makefile14
-rw-r--r--databases/php53-mysqli/files/patch-php_mysqli_structs.h10
-rw-r--r--databases/php53-odbc/Makefile14
-rw-r--r--databases/php53-odbc/files/patch-config.m4124
-rw-r--r--databases/php53-pdo/Makefile14
-rw-r--r--databases/php53-pdo_dblib/Makefile14
-rw-r--r--databases/php53-pdo_firebird/Makefile14
-rw-r--r--databases/php53-pdo_mysql/Makefile14
-rw-r--r--databases/php53-pdo_odbc/Makefile14
-rw-r--r--databases/php53-pdo_pgsql/Makefile14
-rw-r--r--databases/php53-pdo_sqlite/Makefile14
-rw-r--r--databases/php53-pgsql/Makefile14
-rw-r--r--databases/php53-pgsql/files/patch-pgsql.c30
-rw-r--r--databases/php53-sqlite/Makefile14
-rw-r--r--databases/php53-sqlite/files/patch-config.m444
-rw-r--r--databases/php53-sqlite3/Makefile14
-rw-r--r--databases/php53-sybase_ct/Makefile14
23 files changed, 525 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 88ca8cc88718..15f52988473c 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -591,6 +591,23 @@
SUBDIR += php52-rrdtool
SUBDIR += php52-sqlite
SUBDIR += php52-sybase_ct
+ SUBDIR += php53-dba
+ SUBDIR += php53-interbase
+ SUBDIR += php53-mssql
+ SUBDIR += php53-mysql
+ SUBDIR += php53-mysqli
+ SUBDIR += php53-odbc
+ SUBDIR += php53-pdo
+ SUBDIR += php53-pdo_dblib
+ SUBDIR += php53-pdo_firebird
+ SUBDIR += php53-pdo_mysql
+ SUBDIR += php53-pdo_odbc
+ SUBDIR += php53-pdo_pgsql
+ SUBDIR += php53-pdo_sqlite
+ SUBDIR += php53-pgsql
+ SUBDIR += php53-sqlite
+ SUBDIR += php53-sqlite3
+ SUBDIR += php53-sybase_ct
SUBDIR += phpminiadmin
SUBDIR += phpmyadmin
SUBDIR += phppgadmin
diff --git a/databases/php53-dba/Makefile b/databases/php53-dba/Makefile
new file mode 100644
index 000000000000..b296a8016ad0
--- /dev/null
+++ b/databases/php53-dba/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-dba
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -dba
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-dba/files/patch-config.m4 b/databases/php53-dba/files/patch-config.m4
new file mode 100644
index 000000000000..4bb0ed06fc48
--- /dev/null
+++ b/databases/php53-dba/files/patch-config.m4
@@ -0,0 +1,62 @@
+--- config.m4.orig 2011-06-27 22:28:30.000000000 +0200
++++ config.m4 2011-08-26 09:32:43.000000000 +0200
+@@ -285,6 +285,50 @@
+ THIS_PREFIX=$i
+ THIS_INCLUDE=$i/db4/db.h
+ break
++ elif test -f "$i/include/db5/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db5/db.h
++ break
++ elif test -f "$i/include/db51/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db51/db.h
++ break
++ elif test -f "$i/include/db50/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db50/db.h
++ break
++ elif test -f "$i/include/db48/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db48/db.h
++ break
++ elif test -f "$i/include/db47/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db47/db.h
++ break
++ elif test -f "$i/include/db46/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db46/db.h
++ break
++ elif test -f "$i/include/db45/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db45/db.h
++ break
++ elif test -f "$i/include/db44/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db44/db.h
++ break
++ elif test -f "$i/include/db43/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db43/db.h
++ break
++ elif test -f "$i/include/db42/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db42/db.h
++ break
++ elif test -f "$i/include/db41/db.h"; then
++ THIS_PREFIX=$i
++ THIS_INCLUDE=$i/include/db41/db.h
++ break
+ elif test -f "$i/include/db5.1/db.h"; then
+ THIS_PREFIX=$i
+ THIS_INCLUDE=$i/include/db5.1/db.h
+@@ -327,7 +371,7 @@
+ break
+ fi
+ done
+- PHP_DBA_DB_CHECK(4, db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
++ PHP_DBA_DB_CHECK(4, db-5.2 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
+ fi
+ PHP_DBA_STD_RESULT(db4,Berkeley DB4)
+
diff --git a/databases/php53-interbase/Makefile b/databases/php53-interbase/Makefile
new file mode 100644
index 000000000000..2d1123abdc49
--- /dev/null
+++ b/databases/php53-interbase/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-interbase
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -interbase
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-mssql/Makefile b/databases/php53-mssql/Makefile
new file mode 100644
index 000000000000..b130baa83e38
--- /dev/null
+++ b/databases/php53-mssql/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-mssql
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -mssql
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-mysql/Makefile b/databases/php53-mysql/Makefile
new file mode 100644
index 000000000000..eb69cd0a2bd5
--- /dev/null
+++ b/databases/php53-mysql/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-mysql
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -mysql
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-mysqli/Makefile b/databases/php53-mysqli/Makefile
new file mode 100644
index 000000000000..132a204d7b0b
--- /dev/null
+++ b/databases/php53-mysqli/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-mysqli
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -mysqli
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-mysqli/files/patch-php_mysqli_structs.h b/databases/php53-mysqli/files/patch-php_mysqli_structs.h
new file mode 100644
index 000000000000..d0daeee9ee54
--- /dev/null
+++ b/databases/php53-mysqli/files/patch-php_mysqli_structs.h
@@ -0,0 +1,10 @@
+--- php_mysqli_structs.h.orig 2010-07-26 15:52:54.000000000 +0200
++++ php_mysqli_structs.h 2010-07-26 15:53:14.000000000 +0200
+@@ -54,6 +54,7 @@
+ #define WE_HAD_MBSTATE_T
+ #endif
+
++#define HAVE_ULONG 1
+ #include <my_global.h>
+
+ #if !defined(HAVE_MBRLEN) && defined(WE_HAD_MBRLEN)
diff --git a/databases/php53-odbc/Makefile b/databases/php53-odbc/Makefile
new file mode 100644
index 000000000000..0a6ca5835680
--- /dev/null
+++ b/databases/php53-odbc/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-odbc
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -odbc
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-odbc/files/patch-config.m4 b/databases/php53-odbc/files/patch-config.m4
new file mode 100644
index 000000000000..c809732b1047
--- /dev/null
+++ b/databases/php53-odbc/files/patch-config.m4
@@ -0,0 +1,124 @@
+--- config.m4.orig 2007-07-31 15:02:00.000000000 +0200
++++ config.m4 2011-04-26 13:57:31.000000000 +0200
+@@ -99,9 +99,12 @@
+ dnl
+ dnl configure options
+ dnl
++PHP_ARG_ENABLE(odbc,,
++[ --enable-odbc Enable ODBC support with selected driver])
++
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(adabas,,
+-[ --with-adabas[=DIR] Include Adabas D support [/usr/local]])
++[ --with-adabas[=DIR] Include Adabas D support [/usr/local]], no, no)
+
+ if test "$PHP_ADABAS" != "no"; then
+ AC_MSG_CHECKING([for Adabas support])
+@@ -128,7 +131,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(sapdb,,
+-[ --with-sapdb[=DIR] Include SAP DB support [/usr/local]])
++[ --with-sapdb[=DIR] Include SAP DB support [/usr/local]], no, no)
+
+ if test "$PHP_SAPDB" != "no"; then
+ AC_MSG_CHECKING([for SAP DB support])
+@@ -146,7 +149,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(solid,,
+-[ --with-solid[=DIR] Include Solid support [/usr/local/solid]])
++[ --with-solid[=DIR] Include Solid support [/usr/local/solid]], no, no)
+
+ if test "$PHP_SOLID" != "no"; then
+ AC_MSG_CHECKING(for Solid support)
+@@ -171,7 +174,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(ibm-db2,,
+-[ --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib]])
++[ --with-ibm-db2[=DIR] Include IBM DB2 support [/home/db2inst1/sqllib]], no, no)
+
+ if test "$PHP_IBM_DB2" != "no"; then
+ AC_MSG_CHECKING(for IBM DB2 support)
+@@ -208,7 +211,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(ODBCRouter,,
+-[ --with-ODBCRouter[=DIR] Include ODBCRouter.com support [/usr]])
++[ --with-ODBCRouter[=DIR] Include ODBCRouter.com support [/usr]], no, no)
+
+ if test "$PHP_ODBCROUTER" != "no"; then
+ AC_MSG_CHECKING(for ODBCRouter.com support)
+@@ -229,7 +232,7 @@
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(empress,,
+ [ --with-empress[=DIR] Include Empress support [\$EMPRESSPATH]
+- (Empress Version >= 8.60 required)])
++ (Empress Version >= 8.60 required)], no, no)
+
+ if test "$PHP_EMPRESS" != "no"; then
+ AC_MSG_CHECKING(for Empress support)
+@@ -253,7 +256,7 @@
+ PHP_ARG_WITH(empress-bcs,,
+ [ --with-empress-bcs[=DIR]
+ Include Empress Local Access support [\$EMPRESSPATH]
+- (Empress Version >= 8.60 required)])
++ (Empress Version >= 8.60 required)], no, no)
+
+ if test "$PHP_EMPRESS_BCS" != "no"; then
+ AC_MSG_CHECKING(for Empress local access support)
+@@ -291,7 +294,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(birdstep,,
+-[ --with-birdstep[=DIR] Include Birdstep support [/usr/local/birdstep]])
++[ --with-birdstep[=DIR] Include Birdstep support [/usr/local/birdstep]], no, no)
+
+ if test "$PHP_BIRDSTEP" != "no"; then
+ AC_MSG_CHECKING(for Birdstep support)
+@@ -346,7 +349,7 @@
+ running this configure script:
+ CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
+ LDFLAGS=-lunix
+- CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"])
++ CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"], no, no)
+
+ if test "$PHP_CUSTOM_ODBC" != "no"; then
+ AC_MSG_CHECKING(for a custom ODBC support)
+@@ -366,7 +369,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(iodbc,,
+-[ --with-iodbc[=DIR] Include iODBC support [/usr/local]])
++[ --with-iodbc[=DIR] Include iODBC support [/usr/local]], no, no)
+
+ if test "$PHP_IODBC" != "no"; then
+ AC_MSG_CHECKING(for iODBC support)
+@@ -387,7 +390,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(esoob,,
+-[ --with-esoob[=DIR] Include Easysoft OOB support [/usr/local/easysoft/oob/client]])
++[ --with-esoob[=DIR] Include Easysoft OOB support [/usr/local/easysoft/oob/client]], no, no)
+
+ if test "$PHP_ESOOB" != "no"; then
+ AC_MSG_CHECKING(for Easysoft ODBC-ODBC Bridge support)
+@@ -407,7 +410,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(unixODBC,,
+-[ --with-unixODBC[=DIR] Include unixODBC support [/usr/local]])
++[ --with-unixODBC[=DIR] Include unixODBC support [/usr/local]], no, no)
+
+ if test "$PHP_UNIXODBC" != "no"; then
+ AC_MSG_CHECKING(for unixODBC support)
+@@ -428,7 +431,7 @@
+
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(dbmaker,,
+-[ --with-dbmaker[=DIR] Include DBMaker support])
++[ --with-dbmaker[=DIR] Include DBMaker support], no, no)
+
+ if test "$PHP_DBMAKER" != "no"; then
+ AC_MSG_CHECKING(for DBMaker support)
diff --git a/databases/php53-pdo/Makefile b/databases/php53-pdo/Makefile
new file mode 100644
index 000000000000..9b0eb98238b1
--- /dev/null
+++ b/databases/php53-pdo/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pdo_dblib/Makefile b/databases/php53-pdo_dblib/Makefile
new file mode 100644
index 000000000000..7c58f11d0101
--- /dev/null
+++ b/databases/php53-pdo_dblib/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo_dblib
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo_dblib
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pdo_firebird/Makefile b/databases/php53-pdo_firebird/Makefile
new file mode 100644
index 000000000000..5058a2578d59
--- /dev/null
+++ b/databases/php53-pdo_firebird/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo_firebird
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo_firebird
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pdo_mysql/Makefile b/databases/php53-pdo_mysql/Makefile
new file mode 100644
index 000000000000..ecc61c1d6a9d
--- /dev/null
+++ b/databases/php53-pdo_mysql/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo_mysql
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo_mysql
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pdo_odbc/Makefile b/databases/php53-pdo_odbc/Makefile
new file mode 100644
index 000000000000..ffa4e609ac84
--- /dev/null
+++ b/databases/php53-pdo_odbc/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo_odbc
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo_odbc
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pdo_pgsql/Makefile b/databases/php53-pdo_pgsql/Makefile
new file mode 100644
index 000000000000..ed513e413a51
--- /dev/null
+++ b/databases/php53-pdo_pgsql/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo_pgsql
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo_pgsql
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pdo_sqlite/Makefile b/databases/php53-pdo_sqlite/Makefile
new file mode 100644
index 000000000000..ee6628f04a80
--- /dev/null
+++ b/databases/php53-pdo_sqlite/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pdo_sqlite
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pdo_sqlite
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pgsql/Makefile b/databases/php53-pgsql/Makefile
new file mode 100644
index 000000000000..7482a6f83f55
--- /dev/null
+++ b/databases/php53-pgsql/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pgsql
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pgsql
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-pgsql/files/patch-pgsql.c b/databases/php53-pgsql/files/patch-pgsql.c
new file mode 100644
index 000000000000..a4abfc39dff3
--- /dev/null
+++ b/databases/php53-pgsql/files/patch-pgsql.c
@@ -0,0 +1,30 @@
+--- pgsql.c.orig 2010-01-03 10:23:27.000000000 +0100
++++ pgsql.c 2010-03-08 11:00:26.000000000 +0100
+@@ -63,6 +63,7 @@
+ #define PGSQL_MAX_LENGTH_OF_LONG 30
+ #define PGSQL_MAX_LENGTH_OF_DOUBLE 60
+
++#if UINT_MAX > LONG_MAX
+ #define PGSQL_RETURN_OID(oid) do { \
+ if (oid > LONG_MAX) { \
+ smart_str s = {0}; \
+@@ -72,7 +73,9 @@
+ } \
+ RETURN_LONG((long)oid); \
+ } while(0)
+-
++#else
++#define PGSQL_RETURN_OID(oid) RETURN_LONG((long)oid)
++#endif
+
+ #if HAVE_PQSETNONBLOCKING
+ #define PQ_SETNONBLOCKING(pg_link, flag) PQsetnonblocking(pg_link, flag)
+@@ -728,7 +731,7 @@
+ static int le_link, le_plink, le_result, le_lofp, le_string;
+
+ /* {{{ _php_pgsql_trim_message */
+-static char * _php_pgsql_trim_message(const char *message, int *len)
++static char * _php_pgsql_trim_message(const char *message, size_t *len)
+ {
+ register int i = strlen(message)-1;
+
diff --git a/databases/php53-sqlite/Makefile b/databases/php53-sqlite/Makefile
new file mode 100644
index 000000000000..92f807337b2f
--- /dev/null
+++ b/databases/php53-sqlite/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sqlite
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sqlite
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-sqlite/files/patch-config.m4 b/databases/php53-sqlite/files/patch-config.m4
new file mode 100644
index 000000000000..c8cf2bc00557
--- /dev/null
+++ b/databases/php53-sqlite/files/patch-config.m4
@@ -0,0 +1,44 @@
+--- config.m4.orig Wed Nov 30 05:50:03 2005
++++ config.m4 Tue Jan 17 12:51:21 2006
+@@ -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_srcdir@/libsqlite/src -I@ext_builddir@/libsqlite/src $pdo_inc_path"
++ PHP_SQLITE_CFLAGS="-I@ext_srcdir@/libsqlite/src -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 \
+@@ -109,10 +100,9 @@
+ 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_EXTENSION_DEP(sqlite, spl, true)
+- PHP_ADD_EXTENSION_DEP(sqlite, pdo, true)
+
+ PHP_ADD_MAKEFILE_FRAGMENT
+ PHP_SUBST(SQLITE_SHARED_LIBADD)
diff --git a/databases/php53-sqlite3/Makefile b/databases/php53-sqlite3/Makefile
new file mode 100644
index 000000000000..2a9fad5e04d4
--- /dev/null
+++ b/databases/php53-sqlite3/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sqlite3
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sqlite3
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/php53-sybase_ct/Makefile b/databases/php53-sybase_ct/Makefile
new file mode 100644
index 000000000000..a59d8b148a6c
--- /dev/null
+++ b/databases/php53-sybase_ct/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sybase_ct
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= databases
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sybase_ct
+
+.include "${MASTERDIR}/Makefile"