summaryrefslogtreecommitdiff
path: root/mail/imap-uw/options.mk
blob: 1c882dae79f7e48b726b01ae012043c200dd3801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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