aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-04-23 22:21:56 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-04-23 22:21:56 +0000
commit2771825788a3883cff86c644e7fa9c4fab7b8adb (patch)
tree3fa5737cd2e4c9737ce5d5e38d46bf2503f9473f
parent1aaae85bdc4e00b0cafc7a536934e0a41e58ff5b (diff)
Notes
-rw-r--r--databases/Makefile1
-rw-r--r--devel/Makefile1
-rw-r--r--devel/php52-spl/Makefile14
-rw-r--r--devel/php52-spl/files/patch-config.m428
-rw-r--r--net/Makefile1
-rw-r--r--net/php52-soap/Makefile14
-rw-r--r--net/php52-soap/files/patch-soap.c56
-rw-r--r--net/php52-sockets/Makefile14
8 files changed, 129 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index a5acd0171351..cd9454084c90 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -533,6 +533,7 @@
SUBDIR += php52-pdo_pgsql
SUBDIR += php52-pdo_sqlite
SUBDIR += php52-pgsql
+ SUBDIR += php52-sqlite
SUBDIR += phpminiadmin
SUBDIR += phpmyadmin
SUBDIR += phpmyadmin211
diff --git a/devel/Makefile b/devel/Makefile
index 8bf288761803..2acb46b21272 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2476,6 +2476,7 @@
SUBDIR += php52-pcre
SUBDIR += php52-readline
SUBDIR += php52-shmop
+ SUBDIR += php52-spl
SUBDIR += phpbt
SUBDIR += phptags
SUBDIR += physfs
diff --git a/devel/php52-spl/Makefile b/devel/php52-spl/Makefile
new file mode 100644
index 000000000000..69053998b741
--- /dev/null
+++ b/devel/php52-spl/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php52-spl
+# Date created: 17 Apr 2010
+# Whom: Alex Keda <admin@lissyara.su>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= devel
+
+MASTERDIR= ${.CURDIR}/../../lang/php52
+
+PKGNAMESUFFIX= -spl
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/php52-spl/files/patch-config.m4 b/devel/php52-spl/files/patch-config.m4
new file mode 100644
index 000000000000..c5b5ab52b179
--- /dev/null
+++ b/devel/php52-spl/files/patch-config.m4
@@ -0,0 +1,28 @@
+--- config.m4.orig Mon Dec 4 19:01:53 2006
++++ config.m4 Wed Feb 7 12:21:20 2007
+@@ -4,6 +4,11 @@
+ PHP_ARG_ENABLE(spl, enable SPL suppport,
+ [ --disable-spl Disable Standard PHP Library], yes)
+
++if test -z "$PHP_LIBXML_DIR"; then
++ PHP_ARG_WITH(libxml-dir, libxml2 install dir,
++ [ --with-libxml-dir=DIR SPL: libxml2 install prefix], no, no)
++fi
++
+ if test "$PHP_SPL" != "no"; then
+ AC_MSG_CHECKING(whether zend_object_value is packed)
+ old_CPPFLAGS=$CPPFLAGS
+@@ -25,8 +30,12 @@
+ ])
+ CPPFLAGS=$old_CPPFLAGS
+ AC_DEFINE_UNQUOTED(HAVE_PACKED_OBJECT_VALUE, $ac_result, [Whether struct _zend_object_value is packed])
++ PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
+ AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support])
+- PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, no)
++ PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c spl_exceptions.c spl_observer.c, yes)
+ PHP_INSTALL_HEADERS([ext/spl], [php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_sxe.h])
+ PHP_ADD_EXTENSION_DEP(spl, pcre, true)
++ ], [
++ AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
++ ])
+ fi
diff --git a/net/Makefile b/net/Makefile
index 39a35289d6e7..4966ab518475 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -772,6 +772,7 @@
SUBDIR += php5-xmlrpc
SUBDIR += php52-ldap
SUBDIR += php52-soap
+ SUBDIR += php52-sockets
SUBDIR += phpldapadmin
SUBDIR += phpldapadmin098
SUBDIR += pimdd
diff --git a/net/php52-soap/Makefile b/net/php52-soap/Makefile
new file mode 100644
index 000000000000..c7db4c0bf3df
--- /dev/null
+++ b/net/php52-soap/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php52-soap
+# Date created: 17 Apr 2010
+# Whom: Alex Keda <admin@lissyara.su>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net
+
+MASTERDIR= ${.CURDIR}/../../lang/php52
+
+PKGNAMESUFFIX= -soap
+
+.include "${MASTERDIR}/Makefile"
diff --git a/net/php52-soap/files/patch-soap.c b/net/php52-soap/files/patch-soap.c
new file mode 100644
index 000000000000..70b84d3a60e9
--- /dev/null
+++ b/net/php52-soap/files/patch-soap.c
@@ -0,0 +1,56 @@
+--- soap.c.orig Tue Oct 3 21:51:01 2006
++++ soap.c Sat Nov 4 11:38:29 2006
+@@ -23,7 +23,7 @@
+ #include "config.h"
+ #endif
+ #include "php_soap.h"
+-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
++#if HAVE_PHP_SESSION
+ #include "ext/session/php_session.h"
+ #endif
+ #ifdef ZEND_ENGINE_2
+@@ -1577,7 +1577,7 @@
+ soap_obj = service->soap_object;
+ function_table = &((Z_OBJCE_P(soap_obj))->function_table);
+ } else if (service->type == SOAP_CLASS) {
+-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
++#if HAVE_PHP_SESSION
+ /* If persistent then set soap_obj from from the previous created session (if available) */
+ if (service->soap_class.persistance == SOAP_PERSISTENCE_SESSION) {
+ zval **tmp_soap;
+@@ -1664,7 +1664,7 @@
+ }
+ efree(class_name);
+ }
+-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
++#if HAVE_PHP_SESSION
+ /* If session then update session hash with new object */
+ if (service->soap_class.persistance == SOAP_PERSISTENCE_SESSION) {
+ zval **tmp_soap_pp;
+@@ -1762,7 +1762,7 @@
+ if (service->type == SOAP_CLASS || service->type == SOAP_OBJECT) {
+ call_status = call_user_function(NULL, &soap_obj, &function_name, &retval, num_params, params TSRMLS_CC);
+ if (service->type == SOAP_CLASS) {
+-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
++#if HAVE_PHP_SESSION
+ if (service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
+ zval_ptr_dtor(&soap_obj);
+ soap_obj = NULL;
+@@ -1788,7 +1788,7 @@
+ soap_server_fault_ex(function, EG(exception), NULL TSRMLS_CC);
+ }
+ if (service->type == SOAP_CLASS) {
+-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
++#if HAVE_PHP_SESSION
+ if (soap_obj && service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
+ #else
+ if (soap_obj) {
+@@ -1830,7 +1830,7 @@
+ soap_server_fault_ex(function, EG(exception), NULL TSRMLS_CC);
+ }
+ if (service->type == SOAP_CLASS) {
+-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
++#if HAVE_PHP_SESSION
+ if (soap_obj && service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
+ #else
+ if (soap_obj) {
diff --git a/net/php52-sockets/Makefile b/net/php52-sockets/Makefile
new file mode 100644
index 000000000000..712279559202
--- /dev/null
+++ b/net/php52-sockets/Makefile
@@ -0,0 +1,14 @@
+# New ports collection makefile for: php52-sockets
+# Date created: 17 Apr 2010
+# Whom: Alex Keda <admin@lissyara.su>
+#
+# $FreeBSD$
+#
+
+CATEGORIES= net
+
+MASTERDIR= ${.CURDIR}/../../lang/php52
+
+PKGNAMESUFFIX= -sockets
+
+.include "${MASTERDIR}/Makefile"