summaryrefslogtreecommitdiff
path: root/mail/php-imap
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2018-02-16 22:22:58 +0000
committerjdolecek <jdolecek@pkgsrc.org>2018-02-16 22:22:58 +0000
commit5720012b4f3a82c064211248805ffefd69663e7c (patch)
tree1519c656dda8cbcd7cdd87231247ac3958249b99 /mail/php-imap
parent868c51eea44bedfe62baaccfeaef43c46f3a0f13 (diff)
downloadpkgsrc-5720012b4f3a82c064211248805ffefd69663e7c.tar.gz
also add the options.mk split off Makefile + kerberos support
Diffstat (limited to 'mail/php-imap')
-rw-r--r--mail/php-imap/options.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/php-imap/options.mk b/mail/php-imap/options.mk
new file mode 100644
index 00000000000..165ef66f215
--- /dev/null
+++ b/mail/php-imap/options.mk
@@ -0,0 +1,34 @@
+# $NetBSD: options.mk,v 1.1 2018/02/16 22:22:58 jdolecek Exp $
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.imap-uw
+PKG_SUPPORTED_OPTIONS+= ssl kerberos
+PKG_SUGGESTED_OPTIONS+= ssl
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Support GSSAPI authentication via Kerberos 5.
+###
+.if !empty(PKG_OPTIONS:Mkerberos)
+. include "../../mk/krb5.buildlink3.mk"
+CONFIGURE_ARGS+= --with-kerberos
+.endif
+
+###
+### Support SSL/TLS connections.
+###
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+
+# Imap extension's config.m4 calls m4 macro PHP_SETUP_OPENSSL() which
+# expects PHP_ARG_WITH(openssl, ...) being called beforehand so that
+# PHP_OPENSSL is set. For a self contained extension build like for
+# this package this is not the case of course.
+CONFIGURE_ENV.SunOS+= PHP_OPENSSL=yes
+CONFIGURE_ENV.*+= PHP_OPENSSL=${SSLBASE:Q}
+CONFIGURE_ARGS.SunOS+= --with-${MODNAME}-ssl=yes
+CONFIGURE_ARGS.*+= --with-${MODNAME}-ssl=${SSLBASE}
+
+.endif