From 0024c62c09d45632f759ab1308744df2e15c7ad0 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 19 Sep 2004 13:02:15 +0000 Subject: dd options.mk support, from Sergio Jimenez. --- mail/msmtp/options.mk | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 mail/msmtp/options.mk (limited to 'mail/msmtp') 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 -- cgit v1.2.3