[Midnightbsd-cvs] mports: mports/devel: add the php xdebug debugger with support for

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Feb 18 16:58:39 EST 2009


Log Message:
-----------
add the php xdebug debugger with support for profiling.  This can be combined with a gui app to view profile data as well as be used by eclipse pdt for debugging.

Modified Files:
--------------
    mports/devel:
        Makefile (r1.277 -> r1.278)

Added Files:
-----------
    mports/devel/php-xdebug:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/devel/php-xdebug/files:
        pkg-message.in (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/devel/Makefile,v
retrieving revision 1.277
retrieving revision 1.278
diff -L devel/Makefile -L devel/Makefile -u -r1.277 -r1.278
--- devel/Makefile
+++ devel/Makefile
@@ -250,6 +250,7 @@
     SUBDIR += performance
     SUBDIR += perltidy
     SUBDIR += php-dbg2
+    SUBDIR += php-xdebug
     SUBDIR += php5-gettext
     SUBDIR += php5-ncurses
     SUBDIR += php5-pcntl
--- /dev/null
+++ devel/php-xdebug/pkg-descr
@@ -0,0 +1,18 @@
+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/
--- /dev/null
+++ devel/php-xdebug/pkg-plist
@@ -0,0 +1,2 @@
+lib/php/%%PHP_EXT_DIR%%/xdebug.so
+ at dirrmtry lib/php/%%PHP_EXT_DIR%%
--- /dev/null
+++ devel/php-xdebug/Makefile
@@ -0,0 +1,26 @@
+# $MidnightBSD: mports/devel/php-xdebug/Makefile,v 1.1 2009/02/18 21:58:36 laffer1 Exp $
+
+PORTNAME=	xdebug
+DISTVERSION=	2.0.2
+CATEGORIES=	devel
+MASTER_SITES=	http://www.xdebug.org/files/
+PKGNAMEPREFIX=	php-
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Xdebug extension for PHP
+LICENSE=	other
+
+USE_PHP=	yes
+USE_PHPIZE=	yes
+CONFIGURE_ARGS=	--enable-xdebug --with-php-config=${PREFIX}/bin/php-config
+SUB_FILES=	pkg-message
+PKGMESSAGE=	${WRKDIR}/pkg-message
+SUB_LIST=	PHP_EXT_DIR=${PHP_EXT_DIR}
+
+do-install:
+	@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
+	@${INSTALL_DATA} ${WRKSRC}/modules/xdebug.so \
+		${PREFIX}/lib/php/${PHP_EXT_DIR}
+
+.include <bsd.port.mk>
--- /dev/null
+++ devel/php-xdebug/distinfo
@@ -0,0 +1,3 @@
+MD5 (xdebug-2.0.2.tgz) = b994465f9941db4e7ffa4f8b81fa5c3d
+SHA256 (xdebug-2.0.2.tgz) = 2cee0c176d9cea4d20bea3d57e46f92fa09cf38f678659dd0022e789dcee0bc0
+SIZE (xdebug-2.0.2.tgz) = 279621
--- /dev/null
+++ devel/php-xdebug/files/pkg-message.in
@@ -0,0 +1,21 @@
+The php debugger 'xdebug' has been installed successful.
+Add a line containing
+
+	extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/xdebug.so
+
+or
+
+	zend_extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/xdebug.so
+
+to your php.ini to load it. 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 your php.ini.
+
+Add following section to enable profiling:
+
+xdebug.profiler_enable = 1
+xdebug.profiler_output_dir = /tmp/profiler
+
+Also make sure /tmp/profiler exists and has permissions of
+the webserver.


More information about the Midnightbsd-cvs mailing list