diff options
author | wiz <wiz@pkgsrc.org> | 2005-11-24 19:04:34 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-11-24 19:04:34 +0000 |
commit | ec86ce4af0562d2b3a4fcbd07fcfcb08d2734f57 (patch) | |
tree | 6389c1c2c95cc3e833bcfac8d6eabe70e130c711 /mail/imap-uw/options.mk | |
parent | 73291716fc338daafdd5b9bce86ea3dcc05a32a4 (diff) | |
download | pkgsrc-ec86ce4af0562d2b3a4fcbd07fcfcb08d2734f57.tar.gz |
Convert some more settings to the options framework. Some cleanup while here.
Diffstat (limited to 'mail/imap-uw/options.mk')
-rw-r--r-- | mail/imap-uw/options.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mail/imap-uw/options.mk b/mail/imap-uw/options.mk new file mode 100644 index 00000000000..1c882dae79f --- /dev/null +++ b/mail/imap-uw/options.mk @@ -0,0 +1,48 @@ +# $NetBSD: options.mk,v 1.1 2005/11/24 19:04:34 wiz Exp $ + +.include "../../mk/bsd.prefs.mk" + +# Kerberos is explicitly not enabled on NetBSD 1.x due to interoperability +# issues with later versions of OpenSSL (e.g. 0.9.7) +.if empty(MACHINE_PLATFORM:MNetBSD-1.*) +PKG_SUPPORTED_OPTIONS+= kerberos +.endif + +PKG_OPTIONS_VAR= PKG_OPTIONS.imap-uw +PKG_SUPPORTED_OPTIONS+= inet6 ssl imapuw-cleartextpwd imapuw-whoson +PKG_SUGGESTED_OPTIONS+= ssl imapuw-cleartextpwd +# remove after 2005q4 +PKG_OPTIONS_LEGACY_VARS+= IMAP_UW_NO_SSL:-ssl +PKG_OPTIONS_LEGACY_VARS+= IMAP_UW_USE_WHOSON:imapuw-whoson +PKG_OPTIONS_LEGACY_VARS+= IMAP_UW_NO_CLEARTEXT:-imapuw-cleartextpwd + +.include "../../mk/bsd.options.mk" + +.if empty(PKG_OPTIONS:Minet6) +MAKE_ENV+= IP=4 +.else +MAKE_ENV+= IP=6 +.endif + +.if !empty(PKG_OPTIONS:Mkerberos) +PKG_USE_KERBEROS= yes + +BUILD_TARGET+= EXTRAAUTHENTICATORS="gss" +.endif + +.if !empty(PKG_OPTIONS:Mssl) +.include "../../security/openssl/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mimapuw-whoson) +LDFLAGS+= -lwhoson +CFLAGS+= -DUSE_WHOSON +.include "../../net/whoson/buildlink3.mk" +.endif + +.if empty(PKG_OPTIONS:Mimapuw-cleartextpwd) +BUILD_TARGET+= SSLTYPE="nopwd" +.elif !empty(PKG_OPTIONS:Mssl) +BUILD_TARGET+= SPECIALAUTHENTICATORS="ssl" +BUILD_TARGET+= SSLTYPE="unix" +.endif |