2011-12-20 10:21:30 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2011/12/20 15:21:30 giovanni Exp $
|
2007-03-19 19:13:23 -04:00
|
|
|
|
2007-09-13 10:30:23 -04:00
|
|
|
COMMENT-main= base classes for common PHP tasks
|
|
|
|
COMMENT-utils= utilities for managing pear extensions
|
2007-03-19 19:13:23 -04:00
|
|
|
|
2011-11-16 08:29:13 -05:00
|
|
|
VERSION= 1.9.4
|
2007-03-19 19:13:23 -04:00
|
|
|
DISTNAME= pear-${VERSION}
|
2008-08-22 10:48:53 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
|
|
PKGNAME-utils= pear-utils-${VERSION}
|
2007-03-19 19:13:23 -04:00
|
|
|
CATEGORIES= www devel
|
|
|
|
|
2011-12-20 10:21:30 -05:00
|
|
|
REVISION= 1
|
2011-11-16 10:56:36 -05:00
|
|
|
|
2007-03-19 19:13:23 -04:00
|
|
|
HOMEPAGE= http://pear.php.net/
|
2011-11-16 08:29:13 -05:00
|
|
|
MASTER_SITES= http://blade2k.humppa.hu/
|
2007-03-19 19:13:23 -04:00
|
|
|
|
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -utils
|
|
|
|
|
2011-07-08 14:23:17 -04:00
|
|
|
MODULES= lang/php
|
2011-07-11 02:22:49 -04:00
|
|
|
BUILD_DEPENDS= ${_MODPHP_BUILD_DEPENDS}
|
2011-07-08 14:23:17 -04:00
|
|
|
RUN_DEPENDS-main= www/pear,-utils
|
2007-03-19 19:13:23 -04:00
|
|
|
|
|
|
|
# Most of pear have to live in /var/www where apache is chroot'ed to.
|
|
|
|
PREFIX-main= /var/www
|
|
|
|
PREFIX-utils= /usr/local
|
|
|
|
|
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2011-07-08 14:40:45 -04:00
|
|
|
SUBST_VARS= MODPHP_BIN
|
|
|
|
|
2011-11-16 08:29:13 -05:00
|
|
|
pre-fake:
|
|
|
|
@perl -pi -e "s,%%BUNDLEDIR%%,${WRKSRC}/go-pear-bundle,g" ${WRKSRC}/go-pear
|
2007-03-19 19:13:23 -04:00
|
|
|
@perl -pi -e "s,%%PREFIX%%,${WRKINST}${PREFIX-main},g" ${WRKSRC}/go-pear
|
2011-11-16 08:29:13 -05:00
|
|
|
@perl -pi -e "s,%%TMPDIR%%,${TMPDIR}/go-pear,g" ${WRKSRC}/go-pear
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MODPHP_BIN} -q ${WRKSRC}/go-pear
|
2007-03-19 19:13:23 -04:00
|
|
|
|
|
|
|
@mv ${WRKINST}${PREFIX-main}/bin ${WRKINST}${PREFIX-utils}/
|
|
|
|
@mv ${WRKINST}${PREFIX-main}/share/doc/pear ${WRKINST}${PREFIX-utils}/share/doc/
|
|
|
|
@rm -rf ${WRKINST}${PREFIX-main}/share ${WRKINST}${PREFIX-main}/etc
|
|
|
|
|
2011-07-08 14:40:45 -04:00
|
|
|
@find ${WRKINST}${PREFIX-main} -name "*.php" -exec perl -pi -e "s,${WRKINST},,g" {} \;
|
2007-03-19 19:13:23 -04:00
|
|
|
@find ${WRKINST}${PREFIX-utils}/bin -type f -exec perl -pi -e "s,${WRKINST},,g" {} \;
|
|
|
|
|
2011-11-16 08:29:13 -05:00
|
|
|
@for _f in patch-usr_local_bin_pear patch-usr_local_bin_peardev \
|
2011-07-08 14:40:45 -04:00
|
|
|
patch-usr_local_bin_pecl patch-var_www_pear_lib_PEAR_Config_php; do \
|
|
|
|
patch -d ${WRKINST} < ${FILESDIR}/$${_f}; done
|
2011-11-16 08:29:13 -05:00
|
|
|
@find ${WRKINST}/usr/local/bin -type f -exec ${SUBST_CMD} {} \;
|
2007-03-19 19:13:23 -04:00
|
|
|
@perl -pi -e "s,OPENBSD_PEAR_ROOT,'${PREFIX-main}/pear',g" \
|
|
|
|
${WRKINST}${PREFIX-main}/pear/lib/PEAR/Config.php
|
2008-08-22 10:48:53 -04:00
|
|
|
@touch ${WRKINST}${PREFIX-main}/pear/.lock
|
2011-12-20 10:21:30 -05:00
|
|
|
@touch ${WRKINST}${PREFIX-main}/pear/lib/.lock
|
2007-03-19 19:13:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|