aboutsummaryrefslogtreecommitdiff
path: root/lang/php53/Makefile.pear
blob: 6b8c15911319ee522516c151a9b0d01f4ade2253 (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
USE_GNOME=	libxml2

GNU_CONFIGURE=	yes

CONFIGURE_ARGS= --with-layout=GNU \
		--disable-cgi \
                --disable-all \
                --with-pcre-regex=yes \
                --enable-xml \
                --with-libxml-dir=${LOCALBASE} \
                --with-zlib-dir=/usr \
                --with-pear

NO_BUILD=	yes

INSTALL_TARGET=	install-pear

USE_PHP=	pcre xml
WANT_PHP_SCR=	yes

.include <bsd.port.pre.mk>

post-patch:
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" \
		${WRKSRC}/pear/scripts/pearcmd.php > ${WRKSRC}/pear/scripts/pear

post-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
	@${SED} "s|\$${LOCALBASE}|${LOCALBASE}|g;s|\$${PREFIX}|${PREFIX}|g" < ${PKGMESSAGE}