mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# Ports collection makefile for: pear-install
|
|
# Date created: 21 October 2002
|
|
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pear-install
|
|
PORTVERSION= ${PHP_VERSION}
|
|
CATEGORIES= devel www
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # none
|
|
EXTRACT_ONLY= # empty
|
|
|
|
MAINTAINER= thierry@pompo.net
|
|
COMMENT= Prepare the installation of the PEAR framework
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/php-config:${PORTSDIR}/www/mod_php4
|
|
.if defined(WITH_APACHE2)
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
|
|
.else
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
|
|
.endif
|
|
|
|
NO_BUILD= yes
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/pear
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${LOCALBASE}/bin/php-config)
|
|
PHP_VERSION!= ${LOCALBASE}/bin/php-config --version
|
|
PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix
|
|
.else
|
|
PHP_VERSION= 4.3.1
|
|
PHP_BASE= ${LOCALBASE}
|
|
.endif
|
|
LPHP_LIB= lib/php
|
|
|
|
PEARDIR= ${PHP_BASE}/${LPHP_LIB}
|
|
|
|
do-install:
|
|
@${ECHO_MSG} "===> Backuping the original PEAR from mod_php4 into ${PEARDIR}.DIST_PHP ..."
|
|
@${CP} -Rp ${PEARDIR} ${PEARDIR}.DIST_PHP
|
|
|
|
post-install:
|
|
# To be used by other pear-* ports
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|