aboutsummaryrefslogtreecommitdiffstats
path: root/devel/php-xdebug
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-06-18 00:10:58 +0800
committernork <nork@FreeBSD.org>2003-06-18 00:10:58 +0800
commit6b1cf44e103330c391955e139a44ba611fe6a264 (patch)
treef83153008bd3ec441e799d502695371f4e1c5386 /devel/php-xdebug
parent30ae69ddabed1da151621bd0fcc8ec9089190d44 (diff)
downloadfreebsd-ports-graphics-6b1cf44e103330c391955e139a44ba611fe6a264.tar.gz
freebsd-ports-graphics-6b1cf44e103330c391955e139a44ba611fe6a264.tar.zst
freebsd-ports-graphics-6b1cf44e103330c391955e139a44ba611fe6a264.zip
Add php-xdebug 1.2.0, xdebug extension for PHP.
PR: ports/53147 Submitted by: Jens Rehsack <rehsack@liwing.de> Reviewed by: Alex Dupre <sysadmin@alexdupre.com>
Diffstat (limited to 'devel/php-xdebug')
-rw-r--r--devel/php-xdebug/Makefile37
-rw-r--r--devel/php-xdebug/distinfo1
-rw-r--r--devel/php-xdebug/pkg-descr5
-rw-r--r--devel/php-xdebug/pkg-message22
-rw-r--r--devel/php-xdebug/pkg-plist2
5 files changed, 67 insertions, 0 deletions
diff --git a/devel/php-xdebug/Makefile b/devel/php-xdebug/Makefile
new file mode 100644
index 00000000000..604a0fb2a22
--- /dev/null
+++ b/devel/php-xdebug/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: xdebug
+# Date created: Thu Apr 3 12:44:57 GMT 2003
+# Whom: Jens Rehsack <rehsack@liwing.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xdebug
+PORTVERSION= 1.2.0
+CATEGORIES= devel x11
+MASTER_SITES= http://files.derickrethans.nl/
+PKGNAMEPREFIX= php-
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= rehsack@liwing.de
+COMMENT= Xdebug extension for PHP
+
+USE_PHPIZE= yes
+CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
+
+post-build:
+ @${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
+ < ${.CURDIR}/pkg-message > ${PKGMESSAGE}
+
+do-install:
+ @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
+ @${INSTALL_DATA} ${WRKSRC}/modules/xdebug.so \
+ ${PREFIX}/lib/php/${PHP_EXT_DIR}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/devel/php-xdebug/distinfo b/devel/php-xdebug/distinfo
new file mode 100644
index 00000000000..d4afb81c9a7
--- /dev/null
+++ b/devel/php-xdebug/distinfo
@@ -0,0 +1 @@
+MD5 (xdebug-1.2.0.tgz) = a37cd618fa25e87e6f1aab5ff0b80742
diff --git a/devel/php-xdebug/pkg-descr b/devel/php-xdebug/pkg-descr
new file mode 100644
index 00000000000..95fe5580166
--- /dev/null
+++ b/devel/php-xdebug/pkg-descr
@@ -0,0 +1,5 @@
+The Xdebug extension helps you debugging your script by providing a lot of
+valuable debug information. Xdebug can be used from inside a script or by
+a remote debugger.
+
+WWW: http://xdebug.derickrethans.nl/
diff --git a/devel/php-xdebug/pkg-message b/devel/php-xdebug/pkg-message
new file mode 100644
index 00000000000..bb39f0e2aa5
--- /dev/null
+++ b/devel/php-xdebug/pkg-message
@@ -0,0 +1,22 @@
+*****************************************************************************
+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/disable whatever you need from xdebug:
+
+ xdebug.auto_profile [1|On | 0|Off]
+ xdebug.auto_profile_mode [profile mode, integer]
+ xdebug.output_dir [string]
+
+*****************************************************************************
diff --git a/devel/php-xdebug/pkg-plist b/devel/php-xdebug/pkg-plist
new file mode 100644
index 00000000000..1ef13dc30b9
--- /dev/null
+++ b/devel/php-xdebug/pkg-plist
@@ -0,0 +1,2 @@
+lib/php/%%PHP_EXT_DIR%%/xdebug.so
+@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2>/dev/null || true