aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear/Makefile
blob: f93f66b4bd96888bf6aa07f47378c7ea3d3ff843 (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
# New ports collection makefile for:    pear
# Date created:         25 Nov 2005
# Whom:             Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pear
PORTVERSION=    1.9.2
CATEGORIES= devel
MASTER_SITES=   http://freebsd.unixfreunde.de/pear/

MAINTAINER= miwi@FreeBSD.org
COMMENT=    PEAR framework for PHP

USE_BZIP2=  yes
NO_BUILD=   yes

WANT_PHP_CLI=   yes
USE_PHP=    pcre xml

PEARDIR=    ${PREFIX}/share/pear

post-patch:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \
        -e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \
        -e "s|%%TMPDIR%%|${TMPDIR}/go-pear|" \
        ${WRKSRC}/go-pear

do-install:
    @cd ${WRKSRC} && ${LOCALBASE}/bin/php -q ./go-pear
    @${SED} -i "" "s|<?php|<?php dl('pcre.so'); dl('xml.so');|" \
        ${PEARDIR}/peclcmd.php

.include <bsd.port.mk>