aboutsummaryrefslogtreecommitdiffstats
path: root/mail/opendkim/Makefile.features
blob: ae30a4b217cc63fa5f7f87ff157d317ff228c3ff (plain) (blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Created by: Hirohisa Yamaguchi <umq@ueo.co.jp>
# $FreeBSD$

# This file is used to tune build time options.
# Please refer FEATURES file distributed with the source for details.

.if ${PORT_OPTIONS:MADSP_LISTS}
CONFIGURE_ARGS+=    --enable-adsp_lists
.endif

.if ${PORT_OPTIONS:MALLSYMBOLS}
CONFIGURE_ARGS+=    --enable-allsymbols
.endif

.if ${PORT_OPTIONS:MATPS}
CONFIGURE_ARGS+=    --enable-atps
MAN8+=          opendkim-atpszone.8
PLIST_SUB+=     ATPS=""
.else
PLIST_SUB+=     ATPS="@comment "
.endif

.if ${PORT_OPTIONS:MCODECOVERAGE}
CONFIGURE_ARGS+=    --enable-codecoverage
.endif

.if ${PORT_OPTIONS:MDB_HANDLE_POOLS}
CONFIGURE_ARGS+=    --enable-db_handle_pools
.endif

.if ${PORT_OPTIONS:MDEFAULT_SENDER}
CONFIGURE_ARGS+=    --enable-default_sender
.endif

.if ${PORT_OPTIONS:MDIFFHEADERS}
CONFIGURE_ARGS+=    --enable-diffheaders
LIB_DEPENDS+=       tre:${PORTSDIR}/textproc/libtre
.else
CONFIGURE_ARGS+=    --without-tre
.endif

.if ${PORT_OPTIONS:MDKIM_REPUTATION}
CONFIGURE_ARGS+=    --enable-dkim_reputation
MAN3+=          dkim-rep.3
PLIST_SUB+=     DKIMREP=""
.else
PLIST_SUB+=     DKIMREP="@comment "
.endif

.if ${PORT_OPTIONS:MERLANG}
BUILD_DEPENDS+=     erl:${PORTSDIR}/lang/erlang
CONFIGURE_ARGS+=    --with-erlang
.else
CONFIGURE_ARGS+=    --without-erlang
.endif

.if ${PORT_OPTIONS:MIDENTITY_HEADER}
CONFIGURE_ARGS+=    --enable-identity_header
.endif

.if ${PORT_OPTIONS:MLDAP_CACHING}
WITH_OPENLDAP=      yes
CONFIGURE_ARGS+=    --enable-ldap_caching
.endif

.if ${PORT_OPTIONS:MPOSTGRES_RECONNECT_HACK}
CONFIGURE_ARGS+=    --enable-postgresql_reconnect_hack
.endif

.if ${PORT_OPTIONS:MRATE_LIMIT}
CONFIGURE_ARGS+=    --enable-rate_limit
.endif

.if ${PORT_OPTIONS:MRBL}
CONFIGURE_ARGS+=    --enable-rbl
MAN3+=          rbl.3
PLIST_SUB+=     RBL=""
.else
PLIST_SUB+=     RBL="@comment "
.endif

.if ${PORT_OPTIONS:MREDIRECT}
CONFIGURE_ARGS+=    --enable-redirect
.endif

.if ${PORT_OPTIONS:MREPLACE_RULES}
CONFIGURE_ARGS+=    --enable-replace_rules
.endif

.if ${PORT_OPTIONS:MREPRRD}
CONFIGURE_ARGS+=    --enable-reprrd
MAN8+=          opendkim-reprrdimport.8
PLIST_SUB+=     REPRRD=""
BUILD_DEPENDS=      rrdtool>=0:${PORTSDIR}/databases/rrdtool
.else
CONFIGURE_ARGS+=    --disable-reprrd
PLIST_SUB+=     REPRRD="@comment "
.endif

.if ${PORT_OPTIONS:MREPUTATION}
CONFIGURE_ARGS+=    --enable-reputation \
            --with-libcurl
LIB_DEPENDS+=       curl:${PORTSDIR}/ftp/curl
. if ${PORT_OPTIONS:MXML}
CONFIGURE_ARGS+=    --with-libxml2
LIB_DEPENDS+=       xml2:${PORTSDIR}/textproc/libxml2
. else
CONFIGURE_ARGS+=    --with-libjansson
LIB_DEPENDS+=       jansson:${PORTSDIR}/devel/jansson
. endif
MAN3+=          ut.3
MAN8+=          opendkim-genrates.8 opendkim-modtotals.8 \
            opendkim-rephistory.8
PLIST_SUB+=     REPUTE=""
.else
CONFIGURE_ARGS+=    --without-libcurl
PLIST_SUB+=     REPUTE="@comment "
.endif

.if ${PORT_OPTIONS:MRESIGN}
CONFIGURE_ARGS+=    --enable-resign
.endif

.if ${PORT_OPTIONS:MSENDER_MACRO}
CONFIGURE_ARGS+=    --enable-sender_macro
.endif

.if ${PORT_OPTIONS:MSOCKETDB}
CONFIGURE_ARGS+=    --enable-socketdb
.endif

.if ${PORT_OPTIONS:MSTATSEXT}
CONFIGURE_ARGS+=    --enable-statsext
.endif

.if ${PORT_OPTIONS:MVBR}
CONFIGURE_ARGS+=    --enable-vbr
MAN3+=          vbr.3
PLIST_SUB+=     VBR=""
.else
PLIST_SUB+=     VBR="@comment "
.endif