freebsd-ports/devel/pear/Makefile
Martin Wilke 30a3900ad0 - Add support for pear modules to have non .tgz extensions.
- Fix a plist generation bug when no files are installed into a directory.

PR:		152059 152055
Submitted by:	Tom Judge <tom@tomjudge.com>
Tested via:	pointyhat
2010-12-29 07:02:48 +00:00

37 lines
767 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
PORTREVISION= 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>