From 02525ad7283fb795abb14a2418d7e20b12271ca1 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Mon, 19 Jan 2015 10:32:23 +0000 Subject: Allow to link imap extension with newer panda-cclient library. PR: 195973 Submitted by: thierry --- lang/php5/Makefile.ext | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'lang/php5') diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext index b3a694de7e01..8335c5c05e79 100644 --- a/lang/php5/Makefile.ext +++ b/lang/php5/Makefile.ext @@ -132,17 +132,16 @@ USES+= iconv:translit .endif .if ${PHP_MODNAME} == "imap" -LIB_DEPENDS+= libc-client4.so:${PORTSDIR}/mail/cclient +OPTIONS_DEFINE= PANDA +PANDA_DESC= Uses the forked panda-cclient instead of the original cclient CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \ - --with-pcre-dir=${LOCALBASE} -.if !defined(WITHOUT_SSL) -CONFIGURE_ARGS+=--with-imap-ssl=${OPENSSLBASE} + --with-pcre-dir=${LOCALBASE} \ + --with-imap-ssl=${OPENSSLBASE} LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl USE_OPENSSL= yes .endif -.endif .if ${PHP_MODNAME} == "interbase" CONFIGURE_ARGS+=--with-interbase=${LOCALBASE} @@ -524,6 +523,14 @@ CONFIGURE_ARGS+=--with-vpx-dir=${LOCALBASE} . endif .endif +.if ${PHP_MODNAME} == "imap" +. if ${PORT_OPTIONS:MPANDA} +LIB_DEPENDS+= libc-client4.so.10:${PORTSDIR}/mail/panda-cclient +. else +LIB_DEPENDS+= libc-client4.so.9:${PORTSDIR}/mail/cclient +. endif +.endif + .if ${PHP_MODNAME} == "mbstring" . if ${PORT_OPTIONS:MREGEX} LIB_DEPENDS+= libonig.so:${PORTSDIR}/devel/oniguruma4 -- cgit v1.2.3