bfa84aafa5
PR: 214011 214012 214013 214014 214015 214016 214017 PR: 214018 214019 214021 214022 214023 214024 214025 PR: 214026 214027 214028 214029 214030 214031 214032 PR: 214033 214034 214035 214036 214037 214038 214039 PR: 214040 214041 214042 214043 214044 214045 214046 PR: 214047 214048 214049 214050 214051 214052 214053 PR: 214054 214055 214056 214057 214058 214059 214060 PR: 214061 214062 214063 214064 214066 214067 214068 PR: 214071 214072 214073 214074 214075 214076 214077 PR: 214078 214079 214080 214081 214082 214083 214084 PR: 214085 214086 214087 214088 214089 214090 214091 PR: 214092 214093 214094 214095 214096 214097 214098 PR: 214099 214100 214101 214102 214103 214104 214108 PR: 214109 214110 214111 214112 214113 214114 214115 PR: 214116 214117 214118 214119 214120 214121 214122 PR: 214123 214124 214125 214126 214127 214128 214129 PR: 214130 214131 214132 214133 214134 214135 214136 PR: 214137 214138 214139 214140 214141 214142 214143 PR: 214144 214145 214146 214147 214148 214149 214150 PR: 214151 214152 Submitted by: Jochen Neumeister <joneum@bsdproject.de>
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
# Created by: Alex Dupre <ale@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pear
|
|
PORTVERSION= 1.10.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://mirror.miwibox.org/
|
|
|
|
MAINTAINER= joneum@bsdproject.de
|
|
COMMENT= PEAR framework for PHP
|
|
|
|
LICENSE= PHP301
|
|
|
|
USES= cpe php:cli 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>
|