summaryrefslogtreecommitdiff
path: root/devel/pecl-trace/Makefile
blob: bd1df839209ff30054df69983756822238e9721e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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_SUBDIR=	extension
CMDTOOLSRC=	${WRKSRC}/../cmdtool

GNU_CONFIGURE=	yes
USES=		gmake php:ext shebangfix tar:tgz
IGNORE_WITH_PHP=	70

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>