summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-09-19 13:02:15 +0000
committerwiz <wiz@pkgsrc.org>2004-09-19 13:02:15 +0000
commit23a59a9f4bad72060e4b22456f140c5568f94558 (patch)
treeabba51d7033547bbd57a8accc608cc1e2d366db8 /mail
parent502f2e1a8725dc15071ad1ae9b95378a6bfd7d0a (diff)
downloadpkgsrc-23a59a9f4bad72060e4b22456f140c5568f94558.tar.gz
dd options.mk support, from Sergio Jimenez.
Diffstat (limited to 'mail')
-rw-r--r--mail/msmtp/options.mk54
1 files changed, 54 insertions, 0 deletions
diff --git a/mail/msmtp/options.mk b/mail/msmtp/options.mk
new file mode 100644
index 00000000000..25f8a818025
--- /dev/null
+++ b/mail/msmtp/options.mk
@@ -0,0 +1,54 @@
+# $NetBSD: options.mk,v 1.1 2004/09/19 13:02:15 wiz Exp $
+
+.if defined(MSMTP_USE_GNUTLS) && !empty(MSMTP_USE_GNUTLS:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= gnutls
+.endif
+.if defined(USE_INET6) && !empty(USE_INET6:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= inet6
+.endif
+.if defined(MSMTP_USE_OPENSSL) && !empty(MSMTP_USE_OPENSSL:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= ssl
+.endif
+.if defined(MSMTP_USE_GSASL) && !empty(MSMTP_USE_GSASL:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= gsasl
+.endif
+.if defined(MSMTP_NO_SSL) && !empty(MSMTP_NO_SSL:M[yY][eE][sS])
+PKG_DEFAULT_OPTIONS+= nossl
+.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.msmtp
+PKG_SUPPORTED_OPTIONS= gnutls inet6 ssl gsasl nossl
+
+.if !defined(PKG_OPTIONS.msmtp)
+PKG_DEFAULT_OPTIONS+= inet6 ssl
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+###
+### GNUtls support.
+###
+.if !empty(PKG_OPTIONS:Mgnutls)
+.include "../../security/gnutls/buildlink3.mk"
+.endif
+
+###
+### OpenSSL support.
+###
+.if !empty(PKG_OPTIONS:Mssl)
+.include "../../security/openssl/buildlink3.mk"
+.endif
+
+###
+### GNUsasl support.
+###
+.if !empty(PKG_OPTIONS:Mgsasl)
+.include "../../security/gsasl/buildlink3.mk"
+.endif
+
+###
+### No SSL support.
+###
+.if !empty(PKG_OPTIONS:Mnossl)
+CONFIGURE_ARGS+= --disable-ssl
+.endif