aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archivers/Makefile4
-rw-r--r--archivers/php53-bz2/Makefile14
-rw-r--r--archivers/php53-phar/Makefile14
-rw-r--r--archivers/php53-phar/files/patch-config.m441
-rw-r--r--archivers/php53-phar/files/patch-phar.c11
-rw-r--r--archivers/php53-zip/Makefile14
-rw-r--r--archivers/php53-zip/files/patch-config.m410
-rw-r--r--archivers/php53-zlib/Makefile14
-rw-r--r--converters/Makefile3
-rw-r--r--converters/php53-iconv/Makefile14
-rw-r--r--converters/php53-mbstring/Makefile14
-rw-r--r--converters/php53-mbstring/files/patch-config.m451
-rw-r--r--converters/php53-recode/Makefile14
-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
-rw-r--r--devel/Makefile9
-rw-r--r--devel/php53-gettext/Makefile14
-rw-r--r--devel/php53-json/Makefile14
-rw-r--r--devel/php53-pcntl/Makefile14
-rw-r--r--devel/php53-readline/Makefile14
-rw-r--r--devel/php53-readline/files/patch-config.m438
-rw-r--r--devel/php53-shmop/Makefile14
-rw-r--r--devel/php53-sysvmsg/Makefile14
-rw-r--r--devel/php53-sysvsem/Makefile14
-rw-r--r--devel/php53-sysvshm/Makefile14
-rw-r--r--devel/php53-tokenizer/Makefile14
-rw-r--r--ftp/Makefile2
-rw-r--r--ftp/php53-curl/Makefile14
-rw-r--r--ftp/php53-ftp/Makefile14
-rw-r--r--graphics/Makefile2
-rw-r--r--graphics/php53-exif/Makefile14
-rw-r--r--graphics/php53-gd/Makefile14
-rw-r--r--lang/Makefile2
-rw-r--r--lang/php53-extensions/Makefile127
-rw-r--r--lang/php53-extensions/pkg-descr6
-rw-r--r--lang/php53/Makefile10
-rw-r--r--lang/php53/distinfo4
-rw-r--r--mail/Makefile1
-rw-r--r--mail/php53-imap/Makefile14
-rw-r--r--mail/php53-imap/files/patch-config.m442
-rw-r--r--math/Makefile2
-rw-r--r--math/php53-bcmath/Makefile14
-rw-r--r--math/php53-gmp/Makefile14
-rw-r--r--misc/Makefile1
-rw-r--r--misc/php53-calendar/Makefile14
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/php53-snmp/Makefile14
-rw-r--r--net/Makefile4
-rw-r--r--net/php53-ldap/Makefile14
-rw-r--r--net/php53-soap/Makefile14
-rw-r--r--net/php53-sockets/Makefile14
-rw-r--r--net/php53-xmlrpc/Makefile14
-rw-r--r--security/Makefile4
-rw-r--r--security/php53-filter/Makefile14
-rw-r--r--security/php53-filter/files/patch-config.m410
-rw-r--r--security/php53-hash/Makefile14
-rw-r--r--security/php53-mcrypt/Makefile14
-rw-r--r--security/php53-openssl/Makefile14
-rw-r--r--sysutils/Makefile2
-rw-r--r--sysutils/php53-fileinfo/Makefile14
-rw-r--r--sysutils/php53-fileinfo/files/patch-config.m421
-rw-r--r--sysutils/php53-posix/Makefile14
-rw-r--r--textproc/Makefile9
-rw-r--r--textproc/php53-ctype/Makefile14
-rw-r--r--textproc/php53-dom/Makefile14
-rw-r--r--textproc/php53-pspell/Makefile14
-rw-r--r--textproc/php53-simplexml/Makefile14
-rw-r--r--textproc/php53-wddx/Makefile14
-rw-r--r--textproc/php53-xml/Makefile14
-rw-r--r--textproc/php53-xmlreader/Makefile14
-rw-r--r--textproc/php53-xmlwriter/Makefile14
-rw-r--r--textproc/php53-xsl/Makefile14
-rw-r--r--textproc/php53-xsl/files/patch-php_xsl.h11
-rw-r--r--www/Makefile2
-rw-r--r--www/php53-session/Makefile14
-rw-r--r--www/php53-tidy/Makefile14
97 files changed, 1591 insertions, 8 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index eed9fa27f130..2fb6b063aa76 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -139,6 +139,10 @@
SUBDIR += php52-bz2
SUBDIR += php52-zip
SUBDIR += php52-zlib
+ SUBDIR += php53-bz2
+ SUBDIR += php53-phar
+ SUBDIR += php53-zip
+ SUBDIR += php53-zlib
SUBDIR += pigz
SUBDIR += plzip
SUBDIR += ppmd
diff --git a/archivers/php53-bz2/Makefile b/archivers/php53-bz2/Makefile
new file mode 100644
index 000000000000..dd8bf80e7dae
--- /dev/null
+++ b/archivers/php53-bz2/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-bz2
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= archivers
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -bz2
+
+.include "${MASTERDIR}/Makefile"
diff --git a/archivers/php53-phar/Makefile b/archivers/php53-phar/Makefile
new file mode 100644
index 000000000000..ca8e7a72712a
--- /dev/null
+++ b/archivers/php53-phar/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-phar
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= archivers
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -phar
+
+.include "${MASTERDIR}/Makefile"
diff --git a/archivers/php53-phar/files/patch-config.m4 b/archivers/php53-phar/files/patch-config.m4
new file mode 100644
index 000000000000..1a981bfefdc1
--- /dev/null
+++ b/archivers/php53-phar/files/patch-config.m4
@@ -0,0 +1,41 @@
+--- config.m4.orig 2011-11-25 15:31:20.000000000 +0100
++++ config.m4 2011-11-25 15:47:45.000000000 +0100
+@@ -4,8 +4,38 @@
+ PHP_ARG_ENABLE(phar, for phar archive support,
+ [ --disable-phar Disable phar support], yes)
+
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[ --with-pcre-dir PHAR: pcre install prefix], no, no)
++
++
+ if test "$PHP_PHAR" != "no"; then
++
++ dnl This is PECL build, check if bundled PCRE library is used
++ old_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS=$INCLUDES
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=yes
++ ],[
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++ ],[
++ PHP_PCRE_REGEX=no
++ ])
++ ])
++
+ PHP_NEW_EXTENSION(phar, util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c, $ext_shared)
++ PHP_HASH=yes
+ AC_MSG_CHECKING([for phar openssl support])
+ if test "$PHP_HASH_SHARED" != "yes"; then
+ if test "$PHP_HASH" != "no"; then
diff --git a/archivers/php53-phar/files/patch-phar.c b/archivers/php53-phar/files/patch-phar.c
new file mode 100644
index 000000000000..231ec40a8423
--- /dev/null
+++ b/archivers/php53-phar/files/patch-phar.c
@@ -0,0 +1,11 @@
+--- phar.c.orig 2011-11-25 15:38:44.000000000 +0100
++++ phar.c 2011-11-25 15:39:01.000000000 +0100
+@@ -3716,7 +3716,7 @@
+ ZEND_MOD_OPTIONAL("openssl")
+ ZEND_MOD_OPTIONAL("zlib")
+ ZEND_MOD_OPTIONAL("standard")
+-#if defined(HAVE_HASH) && !defined(COMPILE_DL_HASH)
++#if defined(HAVE_HASH)
+ ZEND_MOD_REQUIRED("hash")
+ #endif
+ #if HAVE_SPL
diff --git a/archivers/php53-zip/Makefile b/archivers/php53-zip/Makefile
new file mode 100644
index 000000000000..198c6aff896c
--- /dev/null
+++ b/archivers/php53-zip/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-zip
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= archivers
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -zip
+
+.include "${MASTERDIR}/Makefile"
diff --git a/archivers/php53-zip/files/patch-config.m4 b/archivers/php53-zip/files/patch-config.m4
new file mode 100644
index 000000000000..a87640ff160d
--- /dev/null
+++ b/archivers/php53-zip/files/patch-config.m4
@@ -0,0 +1,10 @@
+--- config.m4.orig 2009-04-09 16:16:30.000000000 +0200
++++ config.m4 2009-04-09 16:17:02.000000000 +0200
+@@ -65,6 +65,7 @@
+ #endif
+ ],[
+ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
+ ],[
+ PHP_PCRE_REGEX=no
+ ])
diff --git a/archivers/php53-zlib/Makefile b/archivers/php53-zlib/Makefile
new file mode 100644
index 000000000000..0deb0e5b2aa9
--- /dev/null
+++ b/archivers/php53-zlib/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-zlib
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= archivers
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -zlib
+
+.include "${MASTERDIR}/Makefile"
diff --git a/converters/Makefile b/converters/Makefile
index c4a1be9f469e..e533f617a843 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -126,6 +126,9 @@
SUBDIR += php52-iconv
SUBDIR += php52-mbstring
SUBDIR += php52-recode
+ SUBDIR += php53-iconv
+ SUBDIR += php53-mbstring
+ SUBDIR += php53-recode
SUBDIR += psiconv
SUBDIR += py-bsdconv
SUBDIR += py-iconv
diff --git a/converters/php53-iconv/Makefile b/converters/php53-iconv/Makefile
new file mode 100644
index 000000000000..617b1bf6aea3
--- /dev/null
+++ b/converters/php53-iconv/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-iconv
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= converters
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -iconv
+
+.include "${MASTERDIR}/Makefile"
diff --git a/converters/php53-mbstring/Makefile b/converters/php53-mbstring/Makefile
new file mode 100644
index 000000000000..42ccea395d6b
--- /dev/null
+++ b/converters/php53-mbstring/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-mbstring
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= converters
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -mbstring
+
+.include "${MASTERDIR}/Makefile"
diff --git a/converters/php53-mbstring/files/patch-config.m4 b/converters/php53-mbstring/files/patch-config.m4
new file mode 100644
index 000000000000..026798f26a5a
--- /dev/null
+++ b/converters/php53-mbstring/files/patch-config.m4
@@ -0,0 +1,51 @@
+--- config.m4.orig 2009-11-25 02:30:06.000000000 +0100
++++ config.m4 2010-04-12 09:59:54.000000000 +0200
+@@ -43,6 +43,30 @@
+ PHP_ADD_INCLUDE([$ext_builddir/$dir])
+ done
+
++ dnl This is PECL build, check if bundled PCRE library is used
++ old_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS=$INCLUDES
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=yes
++ ],[
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++ ],[
++ PHP_PCRE_REGEX=no
++ ])
++ ])
++
+ if test "$ext_shared" = "no"; then
+ PHP_ADD_SOURCES(PHP_EXT_DIR(mbstring), $PHP_MBSTRING_BASE_SOURCES)
+ out="php_config.h"
+@@ -80,7 +104,6 @@
+ int foo(int x, ...) {
+ va_list va;
+ va_start(va, x);
+- va_arg(va, int);
+ va_arg(va, char *);
+ va_arg(va, double);
+ return 0;
+@@ -347,6 +370,9 @@
+ [ --with-onig[=DIR] MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
+ If DIR is not set, the bundled oniguruma will be used], no, no)
+
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[ --with-pcre-dir MBSTRING: pcre install prefix], no, no)
++
+ if test "$PHP_MBSTRING" != "no"; then
+ AC_DEFINE([HAVE_MBSTRING],1,[whether to have multibyte string support])
+
diff --git a/converters/php53-recode/Makefile b/converters/php53-recode/Makefile
new file mode 100644
index 000000000000..b7671b0035a5
--- /dev/null
+++ b/converters/php53-recode/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-recode
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= converters
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -recode
+
+.include "${MASTERDIR}/Makefile"
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"
diff --git a/devel/Makefile b/devel/Makefile
index 95246ae6f848..18e1b3a1c747 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3006,6 +3006,15 @@
SUBDIR += php52-sysvsem
SUBDIR += php52-sysvshm
SUBDIR += php52-tokenizer
+ SUBDIR += php53-gettext
+ SUBDIR += php53-json
+ SUBDIR += php53-pcntl
+ SUBDIR += php53-readline
+ SUBDIR += php53-shmop
+ SUBDIR += php53-sysvmsg
+ SUBDIR += php53-sysvsem
+ SUBDIR += php53-sysvshm
+ SUBDIR += php53-tokenizer
SUBDIR += phpbt
SUBDIR += phpsh
SUBDIR += phptags
diff --git a/devel/php53-gettext/Makefile b/devel/php53-gettext/Makefile
new file mode 100644
index 000000000000..346a4cde21ef
--- /dev/null
+++ b/devel/php53-gettext/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-gettext
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -gettext
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-json/Makefile b/devel/php53-json/Makefile
new file mode 100644
index 000000000000..d631e5a85514
--- /dev/null
+++ b/devel/php53-json/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-json
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -json
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-pcntl/Makefile b/devel/php53-pcntl/Makefile
new file mode 100644
index 000000000000..e3d23933362a
--- /dev/null
+++ b/devel/php53-pcntl/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pcntl
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pcntl
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-readline/Makefile b/devel/php53-readline/Makefile
new file mode 100644
index 000000000000..ef0f0e6d1106
--- /dev/null
+++ b/devel/php53-readline/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-readline
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -readline
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-readline/files/patch-config.m4 b/devel/php53-readline/files/patch-config.m4
new file mode 100644
index 000000000000..b0b2bb521bc7
--- /dev/null
+++ b/devel/php53-readline/files/patch-config.m4
@@ -0,0 +1,38 @@
+--- config.m4.orig 2009-08-04 13:20:49.000000000 +0200
++++ config.m4 2009-09-22 11:13:12.000000000 +0200
+@@ -5,13 +5,8 @@
+ PHP_ARG_WITH(libedit,for libedit readline replacement,
+ [ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only)])
+
+-if test "$PHP_LIBEDIT" = "no"; then
+ PHP_ARG_WITH(readline,for readline support,
+ [ --with-readline[=DIR] Include readline support (CLI/CGI only)])
+-else
+- dnl "register" the --with-readline option to preven invalid "unknown configure option" warning
+- php_with_readline=no
+-fi
+
+ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
+ for i in $PHP_READLINE /usr/local /usr; do
+@@ -60,6 +55,13 @@
+ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
+ ])
+
++ PHP_CHECK_LIBRARY(readline, rl_completion_matches,
++ [
++ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ])
++ ],[],[
++ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
++ ])
++
+ AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
+
+ elif test "$PHP_LIBEDIT" != "no"; then
+@@ -97,7 +99,6 @@
+ fi
+
+ if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
+- AC_CHECK_FUNCS([rl_completion_matches])
+ PHP_NEW_EXTENSION(readline, readline.c, $ext_shared, cli)
+ PHP_SUBST(READLINE_SHARED_LIBADD)
+ fi
diff --git a/devel/php53-shmop/Makefile b/devel/php53-shmop/Makefile
new file mode 100644
index 000000000000..f9602981340a
--- /dev/null
+++ b/devel/php53-shmop/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-shmop
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -shmop
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-sysvmsg/Makefile b/devel/php53-sysvmsg/Makefile
new file mode 100644
index 000000000000..be08a6eba55c
--- /dev/null
+++ b/devel/php53-sysvmsg/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sysvmsg
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sysvmsg
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-sysvsem/Makefile b/devel/php53-sysvsem/Makefile
new file mode 100644
index 000000000000..b3efede8ea3d
--- /dev/null
+++ b/devel/php53-sysvsem/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sysvsem
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sysvsem
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-sysvshm/Makefile b/devel/php53-sysvshm/Makefile
new file mode 100644
index 000000000000..808971ce3985
--- /dev/null
+++ b/devel/php53-sysvshm/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sysvshm
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sysvshm
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php53-tokenizer/Makefile b/devel/php53-tokenizer/Makefile
new file mode 100644
index 000000000000..96e07bffc4b9
--- /dev/null
+++ b/devel/php53-tokenizer/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-tokenizer
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -tokenizer
+
+.include "${MASTERDIR}/Makefile"
diff --git a/ftp/Makefile b/ftp/Makefile
index 3dc97383efa2..08bf7a14b50e 100644
--- a/ftp/Makefile
+++ b/ftp/Makefile
@@ -77,6 +77,8 @@
SUBDIR += php5-ftp
SUBDIR += php52-curl
SUBDIR += php52-ftp
+ SUBDIR += php53-curl
+ SUBDIR += php53-ftp
SUBDIR += phpwebftp
SUBDIR += plasma-applet-ftpmonitor
SUBDIR += proftpd
diff --git a/ftp/php53-curl/Makefile b/ftp/php53-curl/Makefile
new file mode 100644
index 000000000000..85802cec9467
--- /dev/null
+++ b/ftp/php53-curl/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-curl
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= ftp
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -curl
+
+.include "${MASTERDIR}/Makefile"
diff --git a/ftp/php53-ftp/Makefile b/ftp/php53-ftp/Makefile
new file mode 100644
index 000000000000..c3e8d1d0595a
--- /dev/null
+++ b/ftp/php53-ftp/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-ftp
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= ftp
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -ftp
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/Makefile b/graphics/Makefile
index d6437e335157..abb287064064 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -726,6 +726,8 @@
SUBDIR += php52-exif
SUBDIR += php52-gd
SUBDIR += php52-ming
+ SUBDIR += php53-exif
+ SUBDIR += php53-gd
SUBDIR += phplot
SUBDIR += phpsview
SUBDIR += picpuz
diff --git a/graphics/php53-exif/Makefile b/graphics/php53-exif/Makefile
new file mode 100644
index 000000000000..1c910d4ad1a1
--- /dev/null
+++ b/graphics/php53-exif/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-exif
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= graphics
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -exif
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/php53-gd/Makefile b/graphics/php53-gd/Makefile
new file mode 100644
index 000000000000..aa7d473597f5
--- /dev/null
+++ b/graphics/php53-gd/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-gd
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= graphics
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -gd
+
+.include "${MASTERDIR}/Makefile"
diff --git a/lang/Makefile b/lang/Makefile
index 4c32a80e4497..73b7e0a5b506 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -251,6 +251,8 @@
SUBDIR += php5-extensions
SUBDIR += php52
SUBDIR += php52-extensions
+ SUBDIR += php53
+ SUBDIR += php53-extensions
SUBDIR += php_doc
SUBDIR += picoc
SUBDIR += pike76
diff --git a/lang/php53-extensions/Makefile b/lang/php53-extensions/Makefile
new file mode 100644
index 000000000000..0d5c03ce69a1
--- /dev/null
+++ b/lang/php53-extensions/Makefile
@@ -0,0 +1,127 @@
+# New ports collection makefile for: php53-extensions
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= php53
+PORTVERSION= 1.6
+CATEGORIES= lang
+MASTER_SITES= # none
+PKGNAMESUFFIX= -extensions
+DISTFILES= # none
+EXTRACT_ONLY= # none
+
+MAINTAINER= flo@FreeBSD.org
+COMMENT= A "meta-port" to install PHP extensions
+
+DEFAULT_PHP_VER=53
+IGNORE_WITH_PHP=5 52
+USE_PHP_BUILD= yes
+
+NO_BUILD= yes
+
+LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX}
+
+WITH_CTYPE= yes
+WITH_DOM= yes
+WITH_FILTER= yes
+WITH_HASH= yes
+WITH_ICONV= yes
+WITH_JSON= yes
+WITH_PDO= yes
+WITH_PDO_SQLITE=yes
+WITH_PHAR= yes
+WITH_POSIX= yes
+WITH_SESSION= yes
+WITH_SIMPLEXML= yes
+WITH_SQLITE= yes
+WITH_SQLITE3= yes
+WITH_TOKENIZER= yes
+WITH_XML= yes
+WITH_XMLREADER= yes
+WITH_XMLWRITER= yes
+
+OPTIONS= BCMATH "bc style precision math functions" off \
+ BZ2 "bzip2 library support" off \
+ CALENDAR "calendar conversion support" off \
+ CTYPE "ctype functions" on \
+ CURL "CURL support" off \
+ DBA "dba support" off \
+ DOM "DOM support" on \
+ EXIF "EXIF support" off \
+ FILEINFO "fileinfo support" off \
+ FILTER "input filter support" on \
+ FTP "FTP support" off \
+ GD "GD library support" off \
+ GETTEXT "gettext library support" off \
+ GMP "GNU MP support" off \
+ HASH "HASH Message Digest Framework" on \
+ ICONV "iconv support" on \
+ IMAP "IMAP support" off \
+ INTERBASE "Interbase 6 database support (Firebird)" off \
+ JSON "JavaScript Object Serialization support" on \
+ LDAP "OpenLDAP support" off \
+ MBSTRING "multibyte string support" off \
+ MCRYPT "Encryption support" off \
+ MSSQL "MS-SQL database support" off \
+ MYSQL "MySQL database support" off \
+ MYSQLI "MySQLi database support" off \
+ ODBC "ODBC support" off \
+ OPENSSL "OpenSSL support" off \
+ PCNTL "pcntl support (CLI only)" off \
+ PDF "PDFlib support (implies GD)" off \
+ PDO "PHP Data Objects Interface (PDO)" on \
+ PDO_SQLITE "PDO sqlite driver" on \
+ PGSQL "PostgreSQL database support" off \
+ PHAR "phar support" on \
+ POSIX "POSIX-like functions" on \
+ PSPELL "pspell support" off \
+ READLINE "readline support (CLI only)" off \
+ RECODE "recode support" off \
+ SESSION "session support" on \
+ SHMOP "shmop support" off \
+ SIMPLEXML "simplexml support" on \
+ SNMP "SNMP support" off \
+ SOAP "SOAP support" off \
+ SOCKETS "sockets support" off \
+ SQLITE "sqlite support" on \
+ SQLITE3 "sqlite3 support" on \
+ SYBASE_CT "Sybase database support" off \
+ SYSVMSG "System V message support" off \
+ SYSVSEM "System V semaphore support" off \
+ SYSVSHM "System V shared memory support" off \
+ TIDY "TIDY support" off \
+ TOKENIZER "tokenizer support" on \
+ WDDX "WDDX support (implies XML)" off \
+ XML "XML support" on \
+ XMLREADER "XMLReader support" on \
+ XMLRPC "XMLRPC-EPI support" off \
+ XMLWRITER "XMLWriter support" on \
+ XSL "XSL support (Implies DOM)" off \
+ ZIP "ZIP support" off \
+ ZLIB "ZLIB support" off
+
+ALL_OPTIONS= BCMATH BZ2 CALENDAR CTYPE CURL DBA \
+ DOM EXIF FILEINFO FILTER FTP GD GETTEXT \
+ GMP HASH ICONV IMAP INTERBASE JSON LDAP MBSTRING MCRYPT \
+ MSSQL MYSQL MYSQLI \
+ ODBC OPENSSL PCNTL PDF PDO PDO_SQLITE PGSQL PHAR POSIX \
+ PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP SOAP \
+ SOCKETS SQLITE SQLITE3 SYBASE_CT SYSVMSG SYSVSEM SYSVSHM \
+ TIDY TOKENIZER WDDX XML XMLREADER XMLRPC XMLWRITER XSL \
+ ZIP ZLIB
+
+.include <bsd.port.options.mk>
+
+.for opt in ${ALL_OPTIONS}
+. if defined(WITH_${opt}) && !defined(WITHOUT_${opt})
+USE_PHP+= ${opt:L}
+. endif
+.endfor
+
+do-install: build
+ @${DO_NADA}
+
+.include <bsd.port.mk>
diff --git a/lang/php53-extensions/pkg-descr b/lang/php53-extensions/pkg-descr
new file mode 100644
index 000000000000..5418bd0942d7
--- /dev/null
+++ b/lang/php53-extensions/pkg-descr
@@ -0,0 +1,6 @@
+This is a "meta-port" to install the extensions for PHP 5.
+
+Defaults to:
+ctype, dom, iconv, pcre, posix, session, simplexml, sqlite, tokenizer and xml.
+
+WWW: http://www.php.net/
diff --git a/lang/php53/Makefile b/lang/php53/Makefile
index 6ecb509a63c1..47ee90946583 100644
--- a/lang/php53/Makefile
+++ b/lang/php53/Makefile
@@ -5,8 +5,8 @@
# $FreeBSD$
#
-PORTNAME= php5
-PORTVERSION= 5.3.11
+PORTNAME= php53
+PORTVERSION= 5.3.13
PORTREVISION?= 0
CATEGORIES?= lang devel www
MASTER_SITES= ${MASTER_SITE_PHP}
@@ -25,8 +25,6 @@ USE_AUTOTOOLS= autoconf
LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre
-IGNORE= not usable until php5.4.x is in lang/php5
-
CONFIGURE_ARGS= \
--with-layout=GNU \
--localstatedir=/var \
@@ -53,7 +51,7 @@ OPTIONS= CLI "Build CLI version" on \
MAILHEAD "Enable mail header patch" off \
LINKTHR "Link thread lib (for threaded extensions)" off
-CONFLICTS= php4-4* php5-pcre-* php5-spl-*
+CONFLICTS= php52-5* php5-5*
MAN1= php-config.1 phpize.1
@@ -174,7 +172,7 @@ pre-configure:
@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4
post-build:
- @${ECHO_CMD} "PHP_VER=5" > ${WRKDIR}/php.conf
+ @${ECHO_CMD} "PHP_VER=53" > ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_EXT_INC=pcre spl" >> ${WRKDIR}/php.conf
diff --git a/lang/php53/distinfo b/lang/php53/distinfo
index 9592b488b342..29951e197c2b 100644
--- a/lang/php53/distinfo
+++ b/lang/php53/distinfo
@@ -1,5 +1,5 @@
-SHA256 (php-5.3.11.tar.bz2) = b4174c97ca8d8bcf4b52b8b9ef2c2f35e1b611a5a660e02d7cd3edf263a6bd5d
-SIZE (php-5.3.11.tar.bz2) = 11396215
+SHA256 (php-5.3.13.tar.bz2) = ef1a7235b16be449f31f73f60d5770a133b863d225d65a218546cfb7d031d99b
+SIZE (php-5.3.13.tar.bz2) = 11396389
SHA256 (suhosin-patch-5.3.x-0.9.10.patch.gz) = 4438caeab0a10c6c94aee9f7eaa703f5799f97d4e0579f43a947bb7314e38317
SIZE (suhosin-patch-5.3.x-0.9.10.patch.gz) = 40967
SHA256 (php-5.3.x-mail-header.patch) = 5a677448b32d9f592703e2323a33facdb45e5c237dcca04aaea8ec3287f7db84
diff --git a/mail/Makefile b/mail/Makefile
index 5248ae55b93e..7cbdf19d9b89 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -487,6 +487,7 @@
SUBDIR += pgpsendmail
SUBDIR += php5-imap
SUBDIR += php52-imap
+ SUBDIR += php53-imap
SUBDIR += phplist
SUBDIR += phpmailer
SUBDIR += phpmailer2
diff --git a/mail/php53-imap/Makefile b/mail/php53-imap/Makefile
new file mode 100644
index 000000000000..73a165bc0e33
--- /dev/null
+++ b/mail/php53-imap/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-imap
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= mail
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -imap
+
+.include "${MASTERDIR}/Makefile"
diff --git a/mail/php53-imap/files/patch-config.m4 b/mail/php53-imap/files/patch-config.m4
new file mode 100644
index 000000000000..ab7120b2c8c8
--- /dev/null
+++ b/mail/php53-imap/files/patch-config.m4
@@ -0,0 +1,42 @@
+--- config.m4.orig 2010-02-07 14:06:54.000000000 +0100
++++ config.m4 2010-03-08 11:56:24.000000000 +0100
+@@ -103,6 +103,8 @@
+ PHP_ARG_WITH(imap-ssl,for IMAP SSL support,
+ [ --with-imap-ssl[=DIR] IMAP: Include SSL support. DIR is the OpenSSL install prefix], no, no)
+
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[ --with-pcre-dir IMAP: pcre install prefix], no, no)
+
+ if test "$PHP_IMAP" != "no"; then
+ PHP_SUBST(IMAP_SHARED_LIBADD)
+@@ -119,6 +121,30 @@
+ fi
+ done
+
++ dnl This is PECL build, check if bundled PCRE library is used
++ old_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS=$INCLUDES
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=yes
++ ],[
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++ ],[
++ PHP_PCRE_REGEX=no
++ ])
++ ])
++
+ dnl Check for c-client version 2004
+ AC_EGREP_HEADER(mail_fetch_overview_sequence, $IMAP_INC_DIR/mail.h, [
+ AC_DEFINE(HAVE_IMAP2004,1,[ ])
diff --git a/math/Makefile b/math/Makefile
index 81532ef76ba5..460a3b0e5005 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -490,6 +490,8 @@
SUBDIR += php5-bcmath
SUBDIR += php5-gmp
SUBDIR += php52-bcmath
+ SUBDIR += php53-gmp
+ SUBDIR += php53-bcmath
SUBDIR += php52-gmp
SUBDIR += physcalc
SUBDIR += plman
diff --git a/math/php53-bcmath/Makefile b/math/php53-bcmath/Makefile
new file mode 100644
index 000000000000..68636f610f29
--- /dev/null
+++ b/math/php53-bcmath/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-bcmath
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= math
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -bcmath
+
+.include "${MASTERDIR}/Makefile"
diff --git a/math/php53-gmp/Makefile b/math/php53-gmp/Makefile
new file mode 100644
index 000000000000..8d32720455eb
--- /dev/null
+++ b/math/php53-gmp/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-gmp
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= math
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -gmp
+
+.include "${MASTERDIR}/Makefile"
diff --git a/misc/Makefile b/misc/Makefile
index 6544fe69914f..c39d45968809 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -449,6 +449,7 @@
SUBDIR += pecl-timezonedb
SUBDIR += php5-calendar
SUBDIR += php52-calendar
+ SUBDIR += php53-calendar
SUBDIR += phraze
SUBDIR += pinfo
SUBDIR += pipe
diff --git a/misc/php53-calendar/Makefile b/misc/php53-calendar/Makefile
new file mode 100644
index 000000000000..804052aa00df
--- /dev/null
+++ b/misc/php53-calendar/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-calendar
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= misc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -calendar
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index ed49f6a653ba..27ca37c699d7 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -241,6 +241,7 @@
SUBDIR += pftabled
SUBDIR += php5-snmp
SUBDIR += php52-snmp
+ SUBDIR += php53-snmp
SUBDIR += phpip
SUBDIR += phpweathermap
SUBDIR += pixilate
diff --git a/net-mgmt/php53-snmp/Makefile b/net-mgmt/php53-snmp/Makefile
new file mode 100644
index 000000000000..db7990ab4519
--- /dev/null
+++ b/net-mgmt/php53-snmp/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-snmp
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net-mgmt
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -snmp
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/Makefile b/net/Makefile
index 13d1c82c55a8..0319b88f1b02 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -831,6 +831,10 @@
SUBDIR += php52-soap
SUBDIR += php52-sockets
SUBDIR += php52-xmlrpc
+ SUBDIR += php53-ldap
+ SUBDIR += php53-soap
+ SUBDIR += php53-sockets
+ SUBDIR += php53-xmlrpc
SUBDIR += phpldapadmin
SUBDIR += pimdd
SUBDIR += pipsecd
diff --git a/net/php53-ldap/Makefile b/net/php53-ldap/Makefile
new file mode 100644
index 000000000000..1afbfa6d9c98
--- /dev/null
+++ b/net/php53-ldap/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-ldap
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -ldap
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/php53-soap/Makefile b/net/php53-soap/Makefile
new file mode 100644
index 000000000000..532f4c95be82
--- /dev/null
+++ b/net/php53-soap/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-soap
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -soap
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/php53-sockets/Makefile b/net/php53-sockets/Makefile
new file mode 100644
index 000000000000..d9cca4591e03
--- /dev/null
+++ b/net/php53-sockets/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-sockets
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -sockets
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/php53-xmlrpc/Makefile b/net/php53-xmlrpc/Makefile
new file mode 100644
index 000000000000..7c6baac2c51f
--- /dev/null
+++ b/net/php53-xmlrpc/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-xmlrpc
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -xmlrpc
+
+.include "${MASTERDIR}/Makefile"
diff --git a/security/Makefile b/security/Makefile
index cb4da141760b..6eea7e3500a7 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -668,6 +668,10 @@
SUBDIR += php52-mcrypt
SUBDIR += php52-mhash
SUBDIR += php52-openssl
+ SUBDIR += php53-filter
+ SUBDIR += php53-hash
+ SUBDIR += php53-mcrypt
+ SUBDIR += php53-openssl
SUBDIR += phpdeadlock
SUBDIR += phpsecinfo
SUBDIR += pidentd
diff --git a/security/php53-filter/Makefile b/security/php53-filter/Makefile
new file mode 100644
index 000000000000..68dd012c8460
--- /dev/null
+++ b/security/php53-filter/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-filter
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= security
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -filter
+
+.include "${MASTERDIR}/Makefile"
diff --git a/security/php53-filter/files/patch-config.m4 b/security/php53-filter/files/patch-config.m4
new file mode 100644
index 000000000000..ab64c6c9d5ad
--- /dev/null
+++ b/security/php53-filter/files/patch-config.m4
@@ -0,0 +1,10 @@
+--- config.m4.orig 2009-03-06 08:25:45.000000000 +0100
++++ config.m4 2009-03-06 08:28:10.000000000 +0100
+@@ -32,6 +32,7 @@
+ #endif
+ ],[
+ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
+ ],[
+ PHP_PCRE_REGEX=no
+ ])
diff --git a/security/php53-hash/Makefile b/security/php53-hash/Makefile
new file mode 100644
index 000000000000..fc4b7fc62cc9
--- /dev/null
+++ b/security/php53-hash/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-hash
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= security
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -hash
+
+.include "${MASTERDIR}/Makefile"
diff --git a/security/php53-mcrypt/Makefile b/security/php53-mcrypt/Makefile
new file mode 100644
index 000000000000..24e9f45be88d
--- /dev/null
+++ b/security/php53-mcrypt/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-mcrypt
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= security
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -mcrypt
+
+.include "${MASTERDIR}/Makefile"
diff --git a/security/php53-openssl/Makefile b/security/php53-openssl/Makefile
new file mode 100644
index 000000000000..64373c5fdcc8
--- /dev/null
+++ b/security/php53-openssl/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-openssl
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= security
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -openssl
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/Makefile b/sysutils/Makefile
index c25689a40033..38f9fc54fc43 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -674,6 +674,8 @@
SUBDIR += php5-fileinfo
SUBDIR += php5-posix
SUBDIR += php52-posix
+ SUBDIR += php53-fileinfo
+ SUBDIR += php53-posix
SUBDIR += pidof
SUBDIR += pipemeter
SUBDIR += plasma-applet-apcups
diff --git a/sysutils/php53-fileinfo/Makefile b/sysutils/php53-fileinfo/Makefile
new file mode 100644
index 000000000000..1196563c5153
--- /dev/null
+++ b/sysutils/php53-fileinfo/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-fileinfo
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= sysutils
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -fileinfo
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/php53-fileinfo/files/patch-config.m4 b/sysutils/php53-fileinfo/files/patch-config.m4
new file mode 100644
index 000000000000..1348023ccf64
--- /dev/null
+++ b/sysutils/php53-fileinfo/files/patch-config.m4
@@ -0,0 +1,21 @@
+--- config.m4.orig 2010-09-07 15:45:30.000000000 +0200
++++ config.m4 2010-09-07 15:46:50.000000000 +0200
+@@ -4,6 +4,9 @@
+ PHP_ARG_ENABLE(fileinfo, for fileinfo support,
+ [ --disable-fileinfo Disable fileinfo support], yes)
+
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[ --with-pcre-dir FILEINFO: pcre install prefix], no, no)
++
+ if test "$PHP_FILEINFO" != "no"; then
+
+ libmagic_sources=" \
+@@ -13,6 +16,8 @@
+ libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
+ libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
+
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++
+ PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
+ PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
+
diff --git a/sysutils/php53-posix/Makefile b/sysutils/php53-posix/Makefile
new file mode 100644
index 000000000000..5c4c83eb95d8
--- /dev/null
+++ b/sysutils/php53-posix/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-posix
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= sysutils
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -posix
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/Makefile b/textproc/Makefile
index d75d4d601a79..75f05cde15e6 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1084,6 +1084,15 @@
SUBDIR += php52-xmlreader
SUBDIR += php52-xmlwriter
SUBDIR += php52-xsl
+ SUBDIR += php53-ctype
+ SUBDIR += php53-dom
+ SUBDIR += php53-pspell
+ SUBDIR += php53-simplexml
+ SUBDIR += php53-wddx
+ SUBDIR += php53-xml
+ SUBDIR += php53-xmlreader
+ SUBDIR += php53-xmlwriter
+ SUBDIR += php53-xsl
SUBDIR += po4a
SUBDIR += pocketreader
SUBDIR += pootle
diff --git a/textproc/php53-ctype/Makefile b/textproc/php53-ctype/Makefile
new file mode 100644
index 000000000000..5f5ffe237d91
--- /dev/null
+++ b/textproc/php53-ctype/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-ctype
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -ctype
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-dom/Makefile b/textproc/php53-dom/Makefile
new file mode 100644
index 000000000000..a79f93d52551
--- /dev/null
+++ b/textproc/php53-dom/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-dom
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -dom
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-pspell/Makefile b/textproc/php53-pspell/Makefile
new file mode 100644
index 000000000000..3b51d4bb3d43
--- /dev/null
+++ b/textproc/php53-pspell/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-pspell
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -pspell
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-simplexml/Makefile b/textproc/php53-simplexml/Makefile
new file mode 100644
index 000000000000..2d0a1a8a30dc
--- /dev/null
+++ b/textproc/php53-simplexml/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-simplexml
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -simplexml
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-wddx/Makefile b/textproc/php53-wddx/Makefile
new file mode 100644
index 000000000000..f94f78e064cb
--- /dev/null
+++ b/textproc/php53-wddx/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-wddx
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -wddx
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-xml/Makefile b/textproc/php53-xml/Makefile
new file mode 100644
index 000000000000..8302d759c1e8
--- /dev/null
+++ b/textproc/php53-xml/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-xml
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -xml
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-xmlreader/Makefile b/textproc/php53-xmlreader/Makefile
new file mode 100644
index 000000000000..04299d24e289
--- /dev/null
+++ b/textproc/php53-xmlreader/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-xmlreader
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -xmlreader
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-xmlwriter/Makefile b/textproc/php53-xmlwriter/Makefile
new file mode 100644
index 000000000000..685f5626743e
--- /dev/null
+++ b/textproc/php53-xmlwriter/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-xmlwriter
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -xmlwriter
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-xsl/Makefile b/textproc/php53-xsl/Makefile
new file mode 100644
index 000000000000..73a500465dc0
--- /dev/null
+++ b/textproc/php53-xsl/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-xsl
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= textproc
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -xsl
+
+.include "${MASTERDIR}/Makefile"
diff --git a/textproc/php53-xsl/files/patch-php_xsl.h b/textproc/php53-xsl/files/patch-php_xsl.h
new file mode 100644
index 000000000000..9777187f8748
--- /dev/null
+++ b/textproc/php53-xsl/files/patch-php_xsl.h
@@ -0,0 +1,11 @@
+--- php_xsl.h.orig Sun Jan 1 13:50:17 2006
++++ php_xsl.h Tue Jan 17 16:23:10 2006
+@@ -43,7 +43,7 @@
+ #include <libexslt/exsltconfig.h>
+ #endif
+
+-#include "../dom/xml_common.h"
++#include "ext/dom/xml_common.h"
+ #include "xsl_fe.h"
+
+ #include <libxslt/extensions.h>
diff --git a/www/Makefile b/www/Makefile
index d70055f040eb..7148fe9d4ee8 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1381,6 +1381,8 @@
SUBDIR += php5-tidy
SUBDIR += php52-session
SUBDIR += php52-tidy
+ SUBDIR += php53-session
+ SUBDIR += php53-tidy
SUBDIR += phpbb
SUBDIR += phpbb-devel
SUBDIR += phpbb3
diff --git a/www/php53-session/Makefile b/www/php53-session/Makefile
new file mode 100644
index 000000000000..d968bc948075
--- /dev/null
+++ b/www/php53-session/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-session
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= www
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -session
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/php53-tidy/Makefile b/www/php53-tidy/Makefile
new file mode 100644
index 000000000000..ac4e5f01b409
--- /dev/null
+++ b/www/php53-tidy/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php53-tidy
+# Date created: 12 Apr 2012
+# Whom: Florian Smeets <flo@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= www
+
+MASTERDIR= ${.CURDIR}/../../lang/php53
+
+PKGNAMESUFFIX= -tidy
+
+.include "${MASTERDIR}/Makefile"