aboutsummaryrefslogtreecommitdiffstats
path: root/devel/php-xdebug/Makefile
blob: c896e62bc6cfcc5f72f03b0b4fe0b821c9d2beb1 (plain) (blame)
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
# 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.3.2
CATEGORIES= devel
MASTER_SITES=   http://www.xdebug.org/files/
PKGNAMEPREFIX=  php-
EXTRACT_SUFX=   .tgz

MAINTAINER= neuhauser@chello.cz
COMMENT=    Xdebug extension for PHP

USE_PHP=    yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
CONFIGURE_TARGET=   --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PKGMESSAGE= ${WRKDIR}/pkg-message

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.mk>