a1993564e0
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now flavored. They will automatically get flavors (php56, php70, php71, php72) depending of the versions they support (set with IGNORE_WITH_PHP). As a consequence, ports using USES=pear and USES=horde are also flavored. PR: 226242 Submitted by: mat Exp-run by: antoine Approved by: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D14208
47 lines
1.6 KiB
Makefile
47 lines
1.6 KiB
Makefile
# Created by: Alex Dupre <ale@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pear
|
|
PORTVERSION= 1.10.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://mirror.bsdproject.de/
|
|
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= joneum@FreeBSD.org
|
|
COMMENT= PEAR framework for PHP
|
|
|
|
LICENSE= PHP301
|
|
|
|
USES= cpe php:cli,flavors tar:bzip2
|
|
CPE_VENDOR= php
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
USE_PHP= pcre:build xml:build zlib:build
|
|
|
|
PEARDIR= ${PREFIX}/share/pear
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \
|
|
-e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \
|
|
-e "s|%%TMPDIR%%|/tmp/pear|" \
|
|
${WRKSRC}/go-pear
|
|
@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
|
|
@cd ${WRKSRC}/go-pear-bundle/tmp && ${TAR} -cf ../PEAR-${PORTVERSION}.tar PEAR-${PORTVERSION} package.xml
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${LOCALBASE}/bin/php -q ./go-pear
|
|
@${SED} -i "" "s|<?php|<?php dl('pcre.so'); dl('xml.so');|" \
|
|
${STAGEDIR}${PEARDIR}/peclcmd.php
|
|
# pear violates stage when staging as root, hide this
|
|
.if defined(PACKAGE_BUILDING)
|
|
@${RM} -r ${PEARDIR}
|
|
.endif
|
|
# Clean up orphans re-generated by pkg-install
|
|
@${RM} -r ${STAGEDIR}${PEARDIR}/.depdb ${STAGEDIR}${PEARDIR}/.depdblock ${STAGEDIR}${PEARDIR}/.filemap ${STAGEDIR}${PEARDIR}/.lock
|
|
|
|
.include <bsd.port.mk>
|