Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 13:46:30 GMT
From:      Jens Rehsack <rehsack@liwing.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53147: [new port] devel/php-xdebug
Message-ID:  <200306101346.h5ADkUkW064620@helo.liwing.de>
Resent-Message-ID: <200306101350.h5ADoDIK009420@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         53147
>Category:       ports
>Synopsis:       [new port] devel/php-xdebug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 10 06:50:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jens Rehsack
>Release:        FreeBSD 5.1-BETA i386
>Organization:
LiWing IT-Services
>Environment:
System: FreeBSD webdev.muppets.liwing.de 5.1-BETA FreeBSD 5.1-BETA #0: Mon May 26 14:11:55 GMT 2003 root@webdev.muppets.liwing.de:/usr/obj/usr/src/sys/WEBDEV i386

>Description:
	New port for another debugger for php scripts, maybe more
	useful because the debugger / profiler can be called from
	within the script.
>How-To-Repeat:

>Fix:



--- php-xdebug.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	devel/php-xdebug
#	devel/php-xdebug/Makefile
#	devel/php-xdebug/pkg-descr
#	devel/php-xdebug/pkg-message
#	devel/php-xdebug/pkg-plist
#	devel/php-xdebug/distinfo
#
echo c - devel/php-xdebug
mkdir -p devel/php-xdebug > /dev/null 2>&1
echo x - devel/php-xdebug/Makefile
sed 's/^X//' >devel/php-xdebug/Makefile << 'END-of-devel/php-xdebug/Makefile'
X# New ports collection makefile for:	xdebug
X# Date created:		Thu Apr  3 12:44:57 GMT 2003
X# Whom:			Jens Rehsack <rehsack@liwing.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xdebug
XPORTVERSION=	1.2.0
XCATEGORIES=	devel x11
XMASTER_SITES=	http://files.derickrethans.nl/
XPKGNAMEPREFIX=	php-
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	rehsack@liwing.de
XCOMMENT=	Xdebug extension for PHP
X
XUSE_PHPIZE=	yes
XCONFIGURE_ARGS=	--enable-xdebug --with-php-config=${PREFIX}/bin/php-config
XCONFIGURE_ENV=	CFLAGS="${CFLAGS}"
XPKGMESSAGE=	${WRKDIR}/pkg-message
X
X.include <bsd.port.pre.mk>
X.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
X
Xpost-build:
X	@${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
X		< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
X	@${INSTALL_DATA} ${WRKSRC}/modules/xdebug.so \
X		${PREFIX}/lib/php/${PHP_EXT_DIR}
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-devel/php-xdebug/Makefile
echo x - devel/php-xdebug/pkg-descr
sed 's/^X//' >devel/php-xdebug/pkg-descr << 'END-of-devel/php-xdebug/pkg-descr'
XThe Xdebug extension helps you debugging your script by providing a lot of
Xvaluable debug information. Xdebug can be used from inside a script or by
Xa remote debugger.
X
XWWW: http://xdebug.derickrethans.nl/
END-of-devel/php-xdebug/pkg-descr
echo x - devel/php-xdebug/pkg-message
sed 's/^X//' >devel/php-xdebug/pkg-message << 'END-of-devel/php-xdebug/pkg-message'
X*****************************************************************************
XThe php debugger 'xdebug' has been installed successful.
XAdd a line containing
X
X	extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/xdebug.so
X
Xor
X
X	zend_extension=%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/xdebug.so
X
Xto your php.ini to load it. xdebug is not compatible with the extension
X'Zend Optimizer' - you're only able to use one of them. So take care having
Xat least the lesser required extension disabled by commenting out it's
Xloader line in your php.ini.
X
XAdd following section to enable/disable whatever you need from xdebug:
X
X	xdebug.auto_profile [1|On | 0|Off]
X	xdebug.auto_profile_mode [profile mode, integer]
X	xdebug.output_dir [string]
X
X*****************************************************************************
END-of-devel/php-xdebug/pkg-message
echo x - devel/php-xdebug/pkg-plist
sed 's/^X//' >devel/php-xdebug/pkg-plist << 'END-of-devel/php-xdebug/pkg-plist'
Xlib/php/%%PHP_EXT_DIR%%/xdebug.so
X@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2>/dev/null || true
END-of-devel/php-xdebug/pkg-plist
echo x - devel/php-xdebug/distinfo
sed 's/^X//' >devel/php-xdebug/distinfo << 'END-of-devel/php-xdebug/distinfo'
XMD5 (xdebug-1.2.0.tgz) = a37cd618fa25e87e6f1aab5ff0b80742
END-of-devel/php-xdebug/distinfo
exit
--- php-xdebug.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306101346.h5ADkUkW064620>