|
Lines 19-29
Link Here
|
| 19 |
|
19 |
|
| 20 |
CONFLICTS= dbmail-*-2.0.* dbmail-2.1.* dbmail-3.* |
20 |
CONFLICTS= dbmail-*-2.0.* dbmail-2.1.* dbmail-3.* |
| 21 |
|
21 |
|
| 22 |
OPTIONS= MYSQL "Build with MySQL support" on \ |
22 |
OPTIONS_DEFINE= MYSQL PGSQL SQLITE SIEVE LDAP |
| 23 |
POSTGRESQL "Build with PostgreSQL support" off \ |
23 |
OPTIONS_DEFAULT=MYSQL |
| 24 |
SQLITE "Build with SQLite support" off \ |
24 |
SIEVE_DESC= Build with support for Sieve mail sorting language |
| 25 |
SIEVE "Build w. support for Sieve mail sorting language" off \ |
|
|
| 26 |
LDAP "Build with support for LDAP authentication" off |
| 27 |
|
25 |
|
| 28 |
LATEST_LINK= dbmail22 |
26 |
LATEST_LINK= dbmail22 |
| 29 |
USE_AUTOTOOLS= libtool |
27 |
USE_AUTOTOOLS= libtool |
|
Lines 61-67
Link Here
|
| 61 |
|
59 |
|
| 62 |
.include <bsd.port.pre.mk> |
60 |
.include <bsd.port.pre.mk> |
| 63 |
|
61 |
|
| 64 |
.if !defined(WITHOUT_MYSQL) |
62 |
.if ${PORT_OPTIONS:MMYSQL} |
| 65 |
CONFIGURE_ARGS+=--with-mysql |
63 |
CONFIGURE_ARGS+=--with-mysql |
| 66 |
USE_MYSQL= yes |
64 |
USE_MYSQL= yes |
| 67 |
DATABASE+= mysql |
65 |
DATABASE+= mysql |
|
Lines 70-76
Link Here
|
| 70 |
PLIST_SUB+= MYSQL="@comment " |
68 |
PLIST_SUB+= MYSQL="@comment " |
| 71 |
.endif |
69 |
.endif |
| 72 |
|
70 |
|
| 73 |
.if defined(WITH_POSTGRESQL) |
71 |
.if ${PORT_OPTIONS:MPGSQL} |
| 74 |
CONFIGURE_ARGS+=--with-pgsql |
72 |
CONFIGURE_ARGS+=--with-pgsql |
| 75 |
USE_PGSQL= yes |
73 |
USE_PGSQL= yes |
| 76 |
DATABASE+= postgresql |
74 |
DATABASE+= postgresql |
|
Lines 79-85
Link Here
|
| 79 |
PLIST_SUB+= PGSQL="@comment " |
77 |
PLIST_SUB+= PGSQL="@comment " |
| 80 |
.endif |
78 |
.endif |
| 81 |
|
79 |
|
| 82 |
.if defined(WITH_SQLITE) |
80 |
.if ${PORT_OPTIONS:MSQLITE} |
| 83 |
CONFIGURE_ARGS+=--with-sqlite |
81 |
CONFIGURE_ARGS+=--with-sqlite |
| 84 |
USE_SQLITE= yes |
82 |
USE_SQLITE= yes |
| 85 |
DATABASE+= sqlite |
83 |
DATABASE+= sqlite |
|
Lines 88-94
Link Here
|
| 88 |
PLIST_SUB+= SQLITE="@comment " |
86 |
PLIST_SUB+= SQLITE="@comment " |
| 89 |
.endif |
87 |
.endif |
| 90 |
|
88 |
|
| 91 |
.if defined(WITH_SIEVE) |
89 |
.if ${PORT_OPTIONS:MSIEVE} |
| 92 |
CONFIGURE_ARGS+=--with-sieve=${LOCALBASE}/include |
90 |
CONFIGURE_ARGS+=--with-sieve=${LOCALBASE}/include |
| 93 |
LIB_DEPENDS+= sieve.1:${PORTSDIR}/mail/libsieve |
91 |
LIB_DEPENDS+= sieve.1:${PORTSDIR}/mail/libsieve |
| 94 |
PLIST_SUB+= SIEVE="" |
92 |
PLIST_SUB+= SIEVE="" |
|
Lines 96-102
Link Here
|
| 96 |
PLIST_SUB+= SIEVE="@comment " |
94 |
PLIST_SUB+= SIEVE="@comment " |
| 97 |
.endif |
95 |
.endif |
| 98 |
|
96 |
|
| 99 |
.if defined(WITH_LDAP) |
97 |
.if ${PORT_OPTIONS:MLDAP} |
| 100 |
CONFIGURE_ARGS+=--with-auth-ldap=${LOCALBASE}/include |
98 |
CONFIGURE_ARGS+=--with-auth-ldap=${LOCALBASE}/include |
| 101 |
USE_OPENLDAP= yes |
99 |
USE_OPENLDAP= yes |
| 102 |
PLIST_SUB+= LDAP="" |
100 |
PLIST_SUB+= LDAP="" |
|
Lines 104-110
Link Here
|
| 104 |
PLIST_SUB+= LDAP="@comment " |
102 |
PLIST_SUB+= LDAP="@comment " |
| 105 |
.endif |
103 |
.endif |
| 106 |
|
104 |
|
| 107 |
.if defined(WITHOUT_MYSQL) && !defined(WITH_POSTGRESQL) && !defined(WITH_SQLITE) |
105 |
.if !${PORT_OPTIONS:MMYSQL} && !${PORT_OPTIONS:MPGSQL} && !${PORT_OPTIONS:MSQLITE} |
| 108 |
IGNORE="requires at least one database backend selected. Run 'make config'" |
106 |
IGNORE="requires at least one database backend selected. Run 'make config'" |
| 109 |
.endif |
107 |
.endif |