# New ports collection makefile for:	pear
# Date created:			25 Nov 2005
# Whom:				Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD: ports/devel/pear/Makefile,v 1.16 2006/01/16 10:04:28 ale Exp $
#

PORTNAME=	pear
PORTVERSION=	1.4.6
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	ale

MAINTAINER=	ale@FreeBSD.org
COMMENT=	PEAR framework for PHP

USE_BZIP2=	yes
NO_BUILD=	yes

WANT_PHP_SCR=	yes
USE_PHP=	pcre xml

SUB_FILES=	pkg-message
PKGMESSAGE=	${WRKDIR}/pkg-message

USE_REINPLACE=	yes

post-patch:
	@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/go-pear

do-install:
	@${LOCALBASE}/bin/php -q ${WRKSRC}/go-pear
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
