summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/php5/Makefile.ext17
-rw-r--r--lang/php55/Makefile.ext17
-rw-r--r--lang/php56/Makefile.ext17
3 files changed, 36 insertions, 15 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
diff --git a/lang/php55/Makefile.ext b/lang/php55/Makefile.ext
index b3b9e3880d5d..4535f2b7f32b 100644
--- a/lang/php55/Makefile.ext
+++ b/lang/php55/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
diff --git a/lang/php56/Makefile.ext b/lang/php56/Makefile.ext
index 38d60c89eda4..edacc0e78e18 100644
--- a/lang/php56/Makefile.ext
+++ b/lang/php56/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}
@@ -527,6 +526,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