2005-12-09 19:58:03 +01:00
|
|
|
# New ports collection makefile for: pear
|
|
|
|
# Date created: 25 Nov 2005
|
|
|
|
# Whom: Alex Dupre <ale@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pear
|
2011-11-06 15:46:55 +01:00
|
|
|
PORTVERSION= 1.9.4
|
2011-11-15 11:25:13 +01:00
|
|
|
PORTREVISION= 1
|
2005-12-09 19:58:03 +01:00
|
|
|
CATEGORIES= devel
|
2011-06-12 05:58:34 +02:00
|
|
|
MASTER_SITES= http://bsdcrew.de/distfiles/
|
2005-12-09 19:58:03 +01:00
|
|
|
|
2007-07-02 14:51:08 +02:00
|
|
|
MAINTAINER= miwi@FreeBSD.org
|
2005-12-09 19:58:03 +01:00
|
|
|
COMMENT= PEAR framework for PHP
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2006-05-06 15:26:49 +02:00
|
|
|
WANT_PHP_CLI= yes
|
2005-12-09 19:58:03 +01:00
|
|
|
USE_PHP= pcre xml
|
|
|
|
|
2006-08-21 10:42:31 +02:00
|
|
|
PEARDIR= ${PREFIX}/share/pear
|
|
|
|
|
2005-12-09 19:58:03 +01:00
|
|
|
post-patch:
|
2010-08-25 10:38:44 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \
|
|
|
|
-e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \
|
2011-11-15 11:25:13 +01:00
|
|
|
-e "s|%%TMPDIR%%|/tmp/pear|" \
|
2010-08-25 10:38:44 +02:00
|
|
|
${WRKSRC}/go-pear
|
2011-11-15 11:25:13 +01:00
|
|
|
@cd ${WRKSRC}/go-pear-bundle && ${MKDIR} tmp && ${TAR} -C tmp -xf PEAR-${PORTVERSION}.tar
|
|
|
|
@cd ${WRKSRC}/go-pear-bundle/tmp/PEAR-${PORTVERSION} && ${PATCH} -s -p0 < ${FILESDIR}/extra-patch-PEAR-Config.php
|
|
|
|
@rm ${WRKSRC}/go-pear-bundle/tmp/PEAR-${PORTVERSION}/PEAR/Config.php.orig
|
|
|
|
@${MD5} -q ${WRKSRC}/go-pear-bundle/tmp/PEAR-${PORTVERSION}/PEAR/Config.php > ${WRKSRC}/Config.php.md5
|
|
|
|
@${REINPLACE_CMD} -E -e "s|(file md5sum=\").*(\" name=\"PEAR/Config.php\" role=\"php\")|\1`${CAT} ${WRKSRC}/Config.php.md5`\2|g" \
|
|
|
|
${WRKSRC}/go-pear-bundle/tmp/package2.xml ${WRKSRC}/go-pear-bundle/package2.xml
|
|
|
|
@cd ${WRKSRC}/go-pear-bundle/tmp && ${TAR} -cf ../PEAR-${PORTVERSION}.tar package2.xml PEAR-${PORTVERSION} package.xml
|
2005-12-09 19:58:03 +01:00
|
|
|
|
|
|
|
do-install:
|
2010-08-25 10:38:44 +02:00
|
|
|
@cd ${WRKSRC} && ${LOCALBASE}/bin/php -q ./go-pear
|
2007-04-30 10:40:19 +02:00
|
|
|
@${SED} -i "" "s|<?php|<?php dl('pcre.so'); dl('xml.so');|" \
|
|
|
|
${PEARDIR}/peclcmd.php
|
2005-12-09 19:58:03 +01:00
|
|
|
|
2011-11-15 11:25:13 +01:00
|
|
|
post-install:
|
|
|
|
@${CP} -n ${PREFIX}/etc/pear.conf.sample ${PREFIX}/etc/pear.conf
|
|
|
|
|
2005-12-09 19:58:03 +01:00
|
|
|
.include <bsd.port.mk>
|