46a8770a4c
PEAR 1.10.13 is compatible with PHP 8.2 branch PR: 236734
46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
PORTNAME= pear
|
|
PORTVERSION= 1.10.13
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://build.dimapanov.com/~fluffy/distfiles/ \
|
|
LOCAL/fluffy \
|
|
LOCAL/joneum
|
|
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= fluffy@FreeBSD.org
|
|
COMMENT= PEAR framework for PHP
|
|
WWW= https://pear.php.net/
|
|
|
|
LICENSE= PHP301
|
|
|
|
USES= cpe php:cli,flavors tar:xz
|
|
CPE_VENDOR= php
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
USE_PHP= pcre:build xml:build zlib:build
|
|
|
|
PEARDIR= ${PREFIX}/share/pear
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
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 -xzf PEAR-${PORTVERSION}.tgz
|
|
@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} -czf ../PEAR-${PORTVERSION}.tgz PEAR-${PORTVERSION} package.xml
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ${SETENV} DESTDIR=${STAGEDIR} ${LOCALBASE}/bin/php -q ./go-pear
|
|
# 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>
|