summaryrefslogtreecommitdiff
path: root/devel/pear/Makefile
blob: eb49d91b4ae719c7c18dde189e27679748b15db5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Ports collection makefile for:  pear
# Date created:			  Sat Nov 10, 2001
# Whom:				  Thierry Thomas (<thierry@thomas.as>)
#
# $FreeBSD$
#

PORTNAME=	pear
PORTVERSION=	4.0.7
CATEGORIES=	devel www
MASTER_SITES=	ftp://ftp.horde.org/pub/horde/tarballs/
PKGNAMESUFFIX=	-devel
DISTNAME=	${PORTNAME}-${PORTVERSION}RC3

MAINTAINER=	thierry@thomas.as

RUN_DEPENDS=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4

NO_BUILD=	yes

LPHP_LIB?=	lib/php

PLIST_SUB=	PEARDIR=${LPHP_LIB}

PEARDIR=	${LOCALBASE}/${LPHP_LIB}

do-install:
	@${ECHO} "===> Backup the original PEAR from mod_php4 into ${PEARDIR}.DIST_PHP ..."
	${MV}	${PEARDIR} ${PEARDIR}.DIST_PHP
	@${ECHO} "===> Installing the new PEAR ..."
	${MKDIR} ${PEARDIR}
	${CP} -Rp ${WRKSRC}/* ${PEARDIR}

post-install:
	@${ECHO} "*****************************************************************"
	@${ECHO} ""
	@${ECHO} "The new PEAR has replaced your original distribution."
	@${ECHO} "No recompilation or restarting of the server is necessary."
	@${ECHO} ""
	@${ECHO} "*****************************************************************"

.include <bsd.port.mk>