summaryrefslogtreecommitdiff
path: root/mail/qpopper/options.mk
blob: 0e7c354b3942f02b7be1a5cf4bc7b529a35a0e1c (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
# $NetBSD: options.mk,v 1.7 2005/06/01 21:12:28 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.qpopper
PKG_SUPPORTED_OPTIONS=	drac inet6 kerberos pam qpopper-servermode ssl
PKG_SUGGESTED_OPTIONS=	ssl
PKG_OPTIONS_LEGACY_VARS+=	QPOPPER_SERVERMODE:qpopper-servermode

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mssl)
.  include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+=	--with-openssl=${SSLBASE}
.else
CONFIGURE_ARGS+=	--without-ssl
.endif

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ENV+=		O_DEFS="${O_DEFS}" CFLAGS="-DINET6"
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

# Please note this is currently experimental for platforms that support it
.if !empty(PKG_OPTIONS:Mpam)
.  include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+=        --with-pam
.else
CONFIGURE_ARGS+=	--without-pam
.endif

.if !empty(PKG_OPTIONS:Mkerberos)
PKG_USE_KERBEROS=	# defined
CONFIGURE_ARGS+=	--enable-kerberos
.endif

.if !empty(PKG_OPTIONS:Mqpopper-servermode)
CONFIGURE_ARGS+=	--enable-servermode
.endif

.if !empty(PKG_OPTIONS:Mdrac)
.include "../../mail/drac/buildlink3.mk"
CONFIGURE_ARGS+=	--with-drac=${BUILDLINK_PREFIX.drac}
.endif