summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2015-01-19 10:32:23 +0000
committerAlex Dupre <ale@FreeBSD.org>2015-01-19 10:32:23 +0000
commit02525ad7283fb795abb14a2418d7e20b12271ca1 (patch)
treeff9c478c642ded1d795bc63b4e686d2d79f0cca1 /lang/php5
parentdevel/py-validictory: update to 1.0.0 (diff)
Allow to link imap extension with newer panda-cclient library.
PR: 195973 Submitted by: thierry
Notes
Notes: svn path=/head/; revision=377396
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.ext17
1 files changed, 12 insertions, 5 deletions
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