summaryrefslogtreecommitdiff
path: root/mail/msmtp
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
commit0024c62c09d45632f759ab1308744df2e15c7ad0 (patch)
treeabba51d7033547bbd57a8accc608cc1e2d366db8 /mail/msmtp
parentc764c2dd07b3fde4cf2a3cd2e36b79fccddfa59e (diff)
downloadpkgsrc-0024c62c09d45632f759ab1308744df2e15c7ad0.tar.gz
dd options.mk support, from Sergio Jimenez.
Diffstat (limited to 'mail/msmtp')
-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