aboutsummaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd22
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2005-02-26 20:31:20 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2005-02-26 20:31:20 +0000
commit3c4cb6c25e123c4a62de0ab4cb1ddb0176a97625 (patch)
tree3c10a0c101c98bb629c9ef999c5c25a32afa5954 /mail/cyrus-imapd22
parentacd5ef69f9610c121b7c0ddf1f9e088327cbba60 (diff)
downloadports-3c4cb6c25e123c4a62de0ab4cb1ddb0176a97625.tar.gz
ports-3c4cb6c25e123c4a62de0ab4cb1ddb0176a97625.zip
Notes
Diffstat (limited to 'mail/cyrus-imapd22')
-rw-r--r--mail/cyrus-imapd22/Makefile32
1 files changed, 15 insertions, 17 deletions
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index 0ca3bf6a3a64..450a0ba9e528 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -90,14 +90,22 @@ OPTIONS+= SNMP_4 "Enable SNMP support using net-snmp v4" off \
SNMP_5 "Enable SNMP support using net-snmp v5" off
OPTIONS+= PASS8BITHACK "Add pass8bit option (not recommended)" off
+BDB_VERS= 3 4 41 42 43
+
.include <bsd.port.pre.mk>
-.if !defined(WITH_BDB_3) && !defined(WITH_BDB_4) && \
- !defined(WITH_BDB_41) && !defined(WITH_BDB_42) && \
- !defined(WITH_BDB_43)
-.if defined(WITHOUT_BDB_3) && defined(WITHOUT_BDB_4) && \
- defined(WITHOUT_BDB_41) && defined(WITHOUT_BDB_42) && \
- defined(WITHOUT_BDB_43)
+BDB_W:=
+BDB_WO:=
+.for v in ${BDB_VERS}
+BDB_W:= ${BDB_W} ${WITH_BDB_${v}}
+BDB_WO:= ${BDB_WO} ${WITHOUT_BDB_${v}}
+.endfor
+BDB_NUM_W!= echo ${BDB_W} | wc -w
+BDB_NUM_WO!= echo ${BDB_WO} | wc -w
+BDB_NUM_VERS!= echo ${BDB_VERS} | wc -w
+
+.if ${BDB_NUM_W} == 0
+.if ${BDB_NUM_WO} == ${BDB_NUM_VERS}
BROKEN= "You need to select one BDB version. Run 'make config' again!"
.endif
.if ${USE_BDB_VER} == 3
@@ -111,17 +119,7 @@ WITH_BDB_42= true
.elif ${USE_BDB_VER} == 43
WITH_BDB_43= true
.endif
-.endif
-.if (defined(WITH_BDB_3) && defined(WITH_BDB_4)) || \
- (defined(WITH_BDB_3) && defined(WITH_BDB_41)) || \
- (defined(WITH_BDB_3) && defined(WITH_BDB_42)) || \
- (defined(WITH_BDB_3) && defined(WITH_BDB_43)) || \
- (defined(WITH_BDB_4) && defined(WITH_BDB_41)) || \
- (defined(WITH_BDB_4) && defined(WITH_BDB_42)) || \
- (defined(WITH_BDB_4) && defined(WITH_BDB_43)) || \
- (defined(WITH_BDB_41) && defined(WITH_BDB_42)) || \
- (defined(WITH_BDB_41) && defined(WITH_BDB_43)) || \
- (defined(WITH_BDB_42) && defined(WITH_BDB_43))
+.elif ${BDB_NUM_W} != 1
BROKEN= "Multiple BDB versions selected. Run 'make config' again!"
.endif
.if defined(WITH_BDB_3)