freebsd-ports/devel/pear/Makefile
Martin Matuska d0f6b75a0a - Update to 1.9.1
- Update bundled Archive_Tar to 1.3.7
- Update bundled Structures_Graph to 1.0.3
- Use TMPDIR for temporary directory

PR:		ports/149615
Approved by:	miwi (maintainer, IM)
2010-08-25 08:38:44 +00:00

36 lines
751 B
Makefile

# New ports collection makefile for: pear
# Date created: 25 Nov 2005
# Whom: Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pear
PORTVERSION= 1.9.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mm
MAINTAINER= miwi@FreeBSD.org
COMMENT= PEAR framework for PHP
USE_BZIP2= yes
NO_BUILD= yes
WANT_PHP_CLI= yes
USE_PHP= pcre xml
PEARDIR= ${PREFIX}/share/pear
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \
-e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \
-e "s|%%TMPDIR%%|${TMPDIR}/go-pear|" \
${WRKSRC}/go-pear
do-install:
@cd ${WRKSRC} && ${LOCALBASE}/bin/php -q ./go-pear
@${SED} -i "" "s|<?php|<?php dl('pcre.so'); dl('xml.so');|" \
${PEARDIR}/peclcmd.php
.include <bsd.port.mk>