pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/php-imap also add the options.mk split off Makefi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aed666131570
branches:  trunk
changeset: 375604:aed666131570
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Fri Feb 16 22:22:58 2018 +0000

description:
also add the options.mk split off Makefile + kerberos support

diffstat:

 mail/php-imap/options.mk |  34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diffs (38 lines):

diff -r 6f7dccd72ca3 -r aed666131570 mail/php-imap/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/php-imap/options.mk  Fri Feb 16 22:22:58 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index