freebsd-ports/devel/pecl-trace/Makefile
Kurt Jaeger bf9cdcfc90 New port: devel/pecl-trace
Trace is a low-overhead tracing tool for PHP.

It can trace all PHP execution, function calls, request information during
run-time. And provides features like Filter, Statistics, Current Status and
so on.
It is very useful to locate blocking, heavy-load problems and debug in all
environments, especially in production environments.

WWW: https://pecl.php.net/package/trace

PR:		200363
Submitted by:	Gasol Wu <gasol.wu@gmail.com>
2015-07-14 03:11:40 +00:00

39 lines
850 B
Makefile

# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$
PORTNAME= trace
PORTVERSION= 0.3.0
CATEGORIES= devel
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
DIST_SUBDIR= PECL
MAINTAINER= gasol.wu@gmail.com
COMMENT= Low-overhead tracing tool for PHP
LICENSE= APACHE20
WRKSRC= ${WRKDIR}/${DISTNAME}/extension
CMDTOOLSRC= ${WRKSRC}/../cmdtool
GNU_CONFIGURE= yes
USES= gmake shebangfix tar:tgz
USE_PHP= yes
USE_PHP_BUILD= yes
USE_PHPEXT= yes
SHEBANG_FILES= ${CMDTOOLSRC}/phptrace
PLIST_FILES= bin/phptrace \
bin/trace-php
post-patch:
${REINPLACE_CMD} -e 's|Darwin|FreeBSD|g' ${CMDTOOLSRC}/phptrace
post-build:
(cd ${CMDTOOLSRC} && ${GMAKE} ${MAKE_ENV})
post-install:
${INSTALL_PROGRAM} ${CMDTOOLSRC}/trace-php ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${CMDTOOLSRC}/phptrace ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>