blob: 18dac61c9fd383f6897fb82bd49bac7c2f44966a (
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
|
# New ports collection makefile for: mailutils
# Date created: 2011-07-05
# Whom: Attila Nagy <bra@fsn.hu>
#
# $FreeBSD$
#
PORTNAME= mailutils
PORTVERSION= 2.2
CATEGORIES= mail
MASTER_SITES= GNU
MAINTAINER= bra@fsn.hu
COMMENT= Mailutils offers utilities and daemons for processing e-mail
GNU_CONFIGURE= yes
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS+=--disable-build-comsat
LDFLAGS= -L${LOCALBASE}/lib
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/${PORTNAME}
INFO= ${PORTNAME}
MAN1= imap4d.1 mail.1 pop3d.1 popauth.1
OPTIONS= GDBM "Use GNU DBM" Off \
BDB "Use Berkeley DB" Off \
TOKYOCABINET "Use Tokyo Cabinet" Off \
GNUTLS "Enable GNUTLS support" Off \
MYSQL "Enable MySQL support" Off \
PGSQL "Enable Postgres support" Off \
LDAP "Enable LDAP support" Off \
PYTHON "Enable Python support" Off
.include <bsd.port.options.mk>
.if defined(WITH_GDBM)
CONFIGURE_ARGS+= --with-gdbm
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
.else
CONFIGURE_ARGS+= --without-gdbm
.endif
.if defined(WITH_BDB)
USE_BDB= yes
CONFIGURE_ARGS+= --with-berkeley-db
.else
CONFIGURE_ARGS+= --without-berkeley-db
.endif
.if defined(WITH_TOKYOCABINET)
CONFIGURE_ARGS+= --with-tokyocabinet
LIB_DEPENDS+= tokyocabinet.9:${PORTSDIR}/databases/tokyocabinet
PLIST_SUB+= TOKYOCABINET=""
.else
CONFIGURE_ARGS+= --without-tokyocabinet
PLIST_SUB+= TOKYOCABINET="@comment "
.endif
.if defined(WITH_GNUTLS)
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+= --with-gnutls
.else
CONFIGURE_ARGS+= --without-gnutls
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
.else
CONFIGURE_ARGS+= --without-mysql
.endif
.if defined(WITH_PGSQL)
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-postgres
.else
CONFIGURE_ARGS+= --without-postgres
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --with-ldap
.else
CONFIGURE_ARGS+= --without-ldap
.endif
.if defined(WITH_PYTHON)
CONFIGURE_ARGS+= --with-python --with-pythondir=${PYTHON_SITELIBDIR}
USE_PYTHON= 2.5+
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+= --without-python
PLIST_SUB+= PYTHON="@comment "
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e '/need_charset_alias=/s|true|false|g' ${WRKSRC}/lib/Makefile.in
.include <bsd.port.mk>
|