Index: head/devel/Makefile =================================================================== --- head/devel/Makefile +++ head/devel/Makefile @@ -4008,6 +4008,7 @@ SUBDIR += pecl-vld SUBDIR += pecl-weakref SUBDIR += pecl-weakref2 + SUBDIR += pecl-xdebug SUBDIR += pecl-xhprof SUBDIR += pecl-yac SUBDIR += pecl-yaconf @@ -4025,7 +4026,6 @@ SUBDIR += php-memoize SUBDIR += php-scalar_objects SUBDIR += php-uprofiler - SUBDIR += php-xdebug SUBDIR += php5-blitz SUBDIR += php5-blitz-devel SUBDIR += php5-dav Index: head/devel/pear-PHP_CodeCoverage/Makefile =================================================================== --- head/devel/pear-PHP_CodeCoverage/Makefile +++ head/devel/pear-PHP_CodeCoverage/Makefile @@ -32,7 +32,7 @@ XDEBUG_DESC= Enable Xdebug support DOM_USE= PHP=dom -XDEBUG_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdebug.so:devel/php-xdebug +XDEBUG_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdebug.so:devel/pecl-xdebug PHP_DIR= share/PHP Index: head/devel/pecl-test_helpers/Makefile =================================================================== --- head/devel/pecl-test_helpers/Makefile +++ head/devel/pecl-test_helpers/Makefile @@ -17,7 +17,7 @@ USES= php:zend tar:tgz SUB_FILES= pkg-message IGNORE_WITH_PHP= 70 71 72 -# This needs to be loaded *after* devel/php-xdebug +# This needs to be loaded *after* devel/pecl-xdebug PHP_MOD_PRIO= 30 .include Index: head/devel/pecl-xdebug/Makefile =================================================================== --- head/devel/pecl-xdebug/Makefile +++ head/devel/pecl-xdebug/Makefile @@ -0,0 +1,21 @@ +# Created by: Jens Rehsack +# $FreeBSD$ + +PORTNAME= xdebug +PORTVERSION= 2.5.5 +CATEGORIES= devel pear + +MAINTAINER= pizzamig@FreeBSD.org +COMMENT= Xdebug extension for PHP + +LICENSE= PHP30 +LICENSE_FILE= ${WRKSRC}/LICENSE + +IGNORE_WITH_PHP= 72 + +CONFIGURE_ARGS= --enable-xdebug +USES= php:pecl + +SUB_FILES= pkg-message + +.include Index: head/devel/pecl-xdebug/distinfo =================================================================== --- head/devel/pecl-xdebug/distinfo +++ head/devel/pecl-xdebug/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1515538532 +SHA256 (PECL/xdebug-2.5.5.tgz) = 72108bf2bc514ee7198e10466a0fedcac3df9bbc5bd26ce2ec2dafab990bf1a4 +SIZE (PECL/xdebug-2.5.5.tgz) = 279491 Index: head/devel/pecl-xdebug/files/patch-xdebug__com.c =================================================================== --- head/devel/pecl-xdebug/files/patch-xdebug__com.c +++ head/devel/pecl-xdebug/files/patch-xdebug__com.c @@ -0,0 +1,10 @@ +--- xdebug_com.c.orig 2016-12-28 02:42:57 UTC ++++ xdebug_com.c +@@ -26,6 +26,7 @@ + # include + # include + # include ++# include + # include + # include + #else Index: head/devel/pecl-xdebug/files/pkg-message.in =================================================================== --- head/devel/pecl-xdebug/files/pkg-message.in +++ head/devel/pecl-xdebug/files/pkg-message.in @@ -0,0 +1,15 @@ +***************************************************************************** +The php debugger 'xdebug' has been installed successful. + +It has been automatically enabled. + +xdebug is not compatible with the extension 'Zend Optimizer' - you're only able +to use one of them. So take care having at least the lesser required extension +disabled by commenting out it's loader line in its %%PREFIX%%/etc/php/ext-* file. + +Add following section to enable profiling: + +xdebug.profiler_enable = 1 +xdebug.profiler_output_dir = /tmp/profiler + +***************************************************************************** Index: head/devel/pecl-xdebug/pkg-descr =================================================================== --- head/devel/pecl-xdebug/pkg-descr +++ head/devel/pecl-xdebug/pkg-descr @@ -0,0 +1,19 @@ +The Xdebug extension helps you debugging your script by providing a lot of +valuable debug information. The debug information that Xdebug can provide +includes the following: + + * stack and function traces in error messages with: + o full parameter display for user defined functions + o function name, file name and line indications + o support for member functions + * memory allocation + * protection for infinite recursions + +Xdebug also provides: + + * profiling information for PHP scripts + * script execution analysis + * capabilities to debug your scripts interactively with a debug client + +WWW: https://www.xdebug.org/ +WWW: https://pecl.php.net/package/xdebug Index: head/devel/php-xdebug/Makefile =================================================================== --- head/devel/php-xdebug/Makefile +++ head/devel/php-xdebug/Makefile @@ -1,22 +0,0 @@ -# Created by: Jens Rehsack -# $FreeBSD$ - -PORTNAME= xdebug -PORTVERSION= 2.5.5 -CATEGORIES= devel -MASTER_SITES= https://xdebug.org/files/ -PKGNAMEPREFIX= php- - -MAINTAINER= pizzamig@FreeBSD.org -COMMENT= Xdebug extension for PHP - -LICENSE= PHP30 -LICENSE_FILE= ${WRKSRC}/LICENSE - -CONFIGURE_ARGS= --enable-xdebug -USES= php:zend tar:tgz -IGNORE_WITH_PHP= 72 - -SUB_FILES= pkg-message - -.include Index: head/devel/php-xdebug/distinfo =================================================================== --- head/devel/php-xdebug/distinfo +++ head/devel/php-xdebug/distinfo @@ -1,3 +0,0 @@ -TIMESTAMP = 1512471444 -SHA256 (xdebug-2.5.5.tgz) = 72108bf2bc514ee7198e10466a0fedcac3df9bbc5bd26ce2ec2dafab990bf1a4 -SIZE (xdebug-2.5.5.tgz) = 279491 Index: head/devel/php-xdebug/files/patch-xdebug__com.c =================================================================== --- head/devel/php-xdebug/files/patch-xdebug__com.c +++ head/devel/php-xdebug/files/patch-xdebug__com.c @@ -1,10 +0,0 @@ ---- xdebug_com.c.orig 2016-12-28 02:42:57 UTC -+++ xdebug_com.c -@@ -26,6 +26,7 @@ - # include - # include - # include -+# include - # include - # include - #else Index: head/devel/php-xdebug/files/pkg-message.in =================================================================== --- head/devel/php-xdebug/files/pkg-message.in +++ head/devel/php-xdebug/files/pkg-message.in @@ -1,15 +0,0 @@ -***************************************************************************** -The php debugger 'xdebug' has been installed successful. - -It has been automatically enabled. - -xdebug is not compatible with the extension 'Zend Optimizer' - you're only able -to use one of them. So take care having at least the lesser required extension -disabled by commenting out it's loader line in its %%PREFIX%%/etc/php/ext-* file. - -Add following section to enable profiling: - -xdebug.profiler_enable = 1 -xdebug.profiler_output_dir = /tmp/profiler - -***************************************************************************** Index: head/devel/php-xdebug/pkg-descr =================================================================== --- head/devel/php-xdebug/pkg-descr +++ head/devel/php-xdebug/pkg-descr @@ -1,18 +0,0 @@ -The Xdebug extension helps you debugging your script by providing a lot of -valuable debug information. The debug information that Xdebug can provide -includes the following: - - * stack and function traces in error messages with: - o full parameter display for user defined functions - o function name, file name and line indications - o support for member functions - * memory allocation - * protection for infinite recursions - -Xdebug also provides: - - * profiling information for PHP scripts - * script execution analysis - * capabilities to debug your scripts interactively with a debug client - -WWW: http://www.xdebug.org/