summaryrefslogtreecommitdiff
path: root/mail/msmtp/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mail/msmtp/options.mk')
-rw-r--r--mail/msmtp/options.mk37
1 files changed, 14 insertions, 23 deletions
diff --git a/mail/msmtp/options.mk b/mail/msmtp/options.mk
index 9e9f36c6de3..eb10cd9e0fb 100644
--- a/mail/msmtp/options.mk
+++ b/mail/msmtp/options.mk
@@ -1,38 +1,29 @@
-# $NetBSD: options.mk,v 1.4 2005/01/10 20:59:43 adrianp Exp $
+# $NetBSD: options.mk,v 1.5 2005/04/04 08:45:24 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.msmtp
-PKG_SUPPORTED_OPTIONS= gnutls inet6 ssl gsasl nossl
-
-.if !defined(PKG_OPTIONS.msmtp)
-PKG_DEFAULT_OPTIONS+= ssl
-.endif
+PKG_DEFAULT_OPTIONS= ssl
+PKG_SUPPORTED_OPTIONS= gnutls gsasl inet6 ssl
.include "../../mk/bsd.options.mk"
-###
-### GNUtls support.
-###
+# GNUtls support
.if !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ssl=gnutls
.endif
-###
-### OpenSSL support.
-###
-.if !empty(PKG_OPTIONS:Mssl)
-.include "../../security/openssl/buildlink3.mk"
-.endif
-
-###
-### GNUsasl support.
-###
+# GNUsasl support
.if !empty(PKG_OPTIONS:Mgsasl)
.include "../../security/gsasl/buildlink3.mk"
.endif
-###
-### No SSL support.
-###
-.if !empty(PKG_OPTIONS:Mnossl)
+# OpenSSL support
+.if !empty(PKG_OPTIONS:Mssl)
+.include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ssl=openssl
+.endif
+
+# Disable any SSL support
+.if empty(PKG_OPTIONS:Mgnutls) && empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --disable-ssl
.endif