|
Lines 47-57
Link Here
|
| 47 |
.endif |
47 |
.endif |
| 48 |
|
48 |
|
| 49 |
.if exists(${LOCALBASE}/lib/libpq.so.3) |
49 |
.if exists(${LOCALBASE}/lib/libpq.so.3) |
| 50 |
WITH_POSTGRES7= yes |
50 |
WITH_POSTGRESQL=yes |
| 51 |
.endif |
51 |
.endif |
| 52 |
|
52 |
|
| 53 |
.if exists(${LOCALBASE}/lib/libpgeasy.so.2) |
53 |
.if exists(${LOCALBASE}/lib/libpgeasy.so.2) |
| 54 |
WITH_POSTGRES72=yes |
54 |
WITH_POSTGRESQL72=yes |
| 55 |
.endif |
55 |
.endif |
| 56 |
|
56 |
|
| 57 |
.if exists(${LOCALBASE}/lib/libldap.so.2) |
57 |
.if exists(${LOCALBASE}/lib/libldap.so.2) |
|
Lines 91-112
Link Here
|
| 91 |
PLIST_SUB+= MYSQL:="" |
91 |
PLIST_SUB+= MYSQL:="" |
| 92 |
.endif |
92 |
.endif |
| 93 |
|
93 |
|
| 94 |
.if !defined(WITHOUT_POSTGRES7) && defined(WITH_POSTGRES7) |
94 |
.if !defined(WITHOUT_POSTGRESQL) && defined(WITH_POSTGRESQL) |
| 95 |
POSTGRESQL_PORT?= databases/postgresql7 |
95 |
POSTGRESQL_PORT?= databases/postgresql7 |
| 96 |
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} |
96 |
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} |
| 97 |
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE} |
97 |
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE} |
| 98 |
PLIST_SUB+= POSTGRES:="" |
98 |
PLIST_SUB+= POSTGRESQL:="" |
| 99 |
.endif |
99 |
.endif |
| 100 |
|
100 |
|
| 101 |
.if !defined(WITHOUT_POSTGRES72) && defined(WITH_POSTGRES72) |
101 |
.if !defined(WITHOUT_POSTGRESQL72) && defined(WITH_POSTGRESQL72) |
| 102 |
POSTGRESQL_PORT?= databases/postgresql72 |
102 |
POSTGRESQL_PORT?= databases/postgresql72 |
| 103 |
LIB_DEPENDS+= pgeasy.2:${PORTSDIR}/${POSTGRESQL_PORT} |
103 |
LIB_DEPENDS+= pgeasy.2:${PORTSDIR}/${POSTGRESQL_PORT} |
| 104 |
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE} |
104 |
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE} |
| 105 |
PLIST_SUB+= POSTGRES:="" |
105 |
PLIST_SUB+= POSTGRESQL:="" |
| 106 |
.endif |
106 |
.endif |
| 107 |
|
107 |
|
| 108 |
.if !defined(WITH_POSTGRES7) && !defined(WITH_POSTGRES72) |
108 |
.if !defined(WITH_POSTGRESQL) && !defined(WITH_POSTGRESQL72) |
| 109 |
PLIST_SUB+= POSTGRES:="@comment " |
109 |
PLIST_SUB+= POSTGRESQL:="@comment " |
| 110 |
CONFIGURE_ARGS+= --without-postgres |
110 |
CONFIGURE_ARGS+= --without-postgres |
| 111 |
.endif |
111 |
.endif |
| 112 |
|
112 |
|
|
Lines 177-187
Link Here
|
| 177 |
.if !defined(WITH_MYSQL) |
177 |
.if !defined(WITH_MYSQL) |
| 178 |
@${ECHO_MSG} "You can enable support for MySQL databases by defining WITH_MYSQL." |
178 |
@${ECHO_MSG} "You can enable support for MySQL databases by defining WITH_MYSQL." |
| 179 |
.endif |
179 |
.endif |
| 180 |
.if !defined(WITH_POSTGRES7) |
180 |
.if !defined(WITH_POSTGRESQL) |
| 181 |
@${ECHO_MSG} "You can enable support for Postgres 7.0 databases by defining WITH_POSTGRES7." |
181 |
@${ECHO_MSG} "You can enable support for Postgres 7.4+ databases by defining WITH_POSTGRESQL." |
| 182 |
.endif |
182 |
.endif |
| 183 |
.if !defined(WITH_POSTGRES72) |
183 |
.if !defined(WITH_POSTGRESQL72) |
| 184 |
@${ECHO_MSG} "You can enable support for Postgres 7.2 databases by defining WITH_POSTGRES72." |
184 |
@${ECHO_MSG} "You can enable support for Postgres 7.2 databases by defining WITH_POSTGRESQL72." |
| 185 |
.endif |
185 |
.endif |
| 186 |
.if !defined(WITH_LDAP) |
186 |
.if !defined(WITH_LDAP) |
| 187 |
@${ECHO_MSG} "You can enable support for LDAP databases by defining WITH_LDAP." |
187 |
@${ECHO_MSG} "You can enable support for LDAP databases by defining WITH_LDAP." |