Lines 25-31
Link Here
|
25 |
# Default: 41. |
25 |
# Default: 41. |
26 |
# WANT_MYSQL_VER |
26 |
# WANT_MYSQL_VER |
27 |
# - Maintainer can set an arbitrary version of MySQL by using it. |
27 |
# - Maintainer can set an arbitrary version of MySQL by using it. |
28 |
# BROKEN_WITH_MYSQL |
28 |
# IGNORE_WITH_MYSQL |
29 |
# - This variable can be defined if the ports doesn't support |
29 |
# - This variable can be defined if the ports doesn't support |
30 |
# one or more version of MySQL. |
30 |
# one or more version of MySQL. |
31 |
# MYSQL_VER - Internal variable for MySQL version. |
31 |
# MYSQL_VER - Internal variable for MySQL version. |
Lines 43-49
Link Here
|
43 |
# WANT_PGSQL_VER |
43 |
# WANT_PGSQL_VER |
44 |
# - Maintainer can set an arbitrary version of PostgreSQL by |
44 |
# - Maintainer can set an arbitrary version of PostgreSQL by |
45 |
# using it. |
45 |
# using it. |
46 |
# BROKEN_WITH_PGSQL |
46 |
# IGNORE_WITH_PGSQL |
47 |
# - This variable can be defined if the ports doesn't support |
47 |
# - This variable can be defined if the ports doesn't support |
48 |
# one or more versions of PostgreSQL. |
48 |
# one or more versions of PostgreSQL. |
49 |
## |
49 |
## |
Lines 72-78
Link Here
|
72 |
|
72 |
|
73 |
.if defined(WANT_MYSQL_VER) |
73 |
.if defined(WANT_MYSQL_VER) |
74 |
.if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER} != ${WANT_MYSQL_VER} |
74 |
.if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER} != ${WANT_MYSQL_VER} |
75 |
BROKEN= The port wants mysql${WANT_MYSQL_VER}-client and you try to install mysql${WITH_MYSQL_VER}-client. |
75 |
IGNORE= The port wants mysql${WANT_MYSQL_VER}-client and you try to install mysql${WITH_MYSQL_VER}-client. |
76 |
.endif |
76 |
.endif |
77 |
MYSQL_VER= ${WANT_MYSQL_VER} |
77 |
MYSQL_VER= ${WANT_MYSQL_VER} |
78 |
.elif defined(WITH_MYSQL_VER) |
78 |
.elif defined(WITH_MYSQL_VER) |
Lines 87-105
Link Here
|
87 |
|
87 |
|
88 |
.if defined(_MYSQL_VER) |
88 |
.if defined(_MYSQL_VER) |
89 |
.if ${_MYSQL_VER} != ${MYSQL_VER} |
89 |
.if ${_MYSQL_VER} != ${MYSQL_VER} |
90 |
BROKEN= MySQL versions mismatch: mysql${_MYSQL_VER}-client is installed and wanted version is mysql${MYSQL_VER}-client |
90 |
IGNORE= MySQL versions mismatch: mysql${_MYSQL_VER}-client is installed and wanted version is mysql${MYSQL_VER}-client |
91 |
.endif |
91 |
.endif |
92 |
.endif |
92 |
.endif |
93 |
|
93 |
|
94 |
# And now we are checking if we can use it |
94 |
# And now we are checking if we can use it |
95 |
.if defined(MYSQL${MYSQL_VER}_LIBVER) |
95 |
.if defined(MYSQL${MYSQL_VER}_LIBVER) |
96 |
.if defined(BROKEN_WITH_MYSQL) |
96 |
.if defined(IGNORE_WITH_MYSQL) |
97 |
. for VER in ${BROKEN_WITH_MYSQL} |
97 |
. for VER in ${IGNORE_WITH_MYSQL} |
98 |
. if (${MYSQL_VER} == "${VER}") |
98 |
. if (${MYSQL_VER} == "${VER}") |
99 |
IGNORE= Doesn't work with MySQL version : ${MYSQL_VER} (Doesn't support MySQL ${BROKEN_WITH_MYSQL}) |
99 |
IGNORE= Doesn't work with MySQL version : ${MYSQL_VER} (Doesn't support MySQL ${IGNORE_WITH_MYSQL}) |
100 |
. endif |
100 |
. endif |
101 |
. endfor |
101 |
. endfor |
102 |
.endif # BROKEN_WITH_MYSQL |
102 |
.endif # IGNORE_WITH_MYSQL |
103 |
LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client |
103 |
LIB_DEPENDS+= mysqlclient.${MYSQL${MYSQL_VER}_LIBVER}:${PORTSDIR}/databases/mysql${MYSQL_VER}-client |
104 |
.else |
104 |
.else |
105 |
IGNORE= Unknown MySQL version: ${MYSQL_VER} |
105 |
IGNORE= Unknown MySQL version: ${MYSQL_VER} |
Lines 119-125
Link Here
|
119 |
.endif |
119 |
.endif |
120 |
|
120 |
|
121 |
.if defined(WANT_PGSQL_VER) && defined(_PGSQL_VER) && ${WANT_PGSQL_VER} != ${_PGSQL_VER} |
121 |
.if defined(WANT_PGSQL_VER) && defined(_PGSQL_VER) && ${WANT_PGSQL_VER} != ${_PGSQL_VER} |
122 |
BROKEN= the port wants postgresql${WANT_PGSQL_VER}-client but you have postgresql${_PGSQL_VER}-client installed |
122 |
IGNORE= the port wants postgresql${WANT_PGSQL_VER}-client but you have postgresql${_PGSQL_VER}-client installed |
123 |
.endif |
123 |
.endif |
124 |
|
124 |
|
125 |
.if defined(_PGSQL_VER) |
125 |
.if defined(_PGSQL_VER) |
Lines 132-144
Link Here
|
132 |
|
132 |
|
133 |
# And now we are checking if we can use it |
133 |
# And now we are checking if we can use it |
134 |
.if defined(PGSQL${PGSQL_VER}_LIBVER) |
134 |
.if defined(PGSQL${PGSQL_VER}_LIBVER) |
135 |
.if defined(BROKEN_WITH_PGSQL) |
135 |
.if defined(IGNORE_WITH_PGSQL) |
136 |
. for VER in ${BROKEN_WITH_PGSQL} |
136 |
. for VER in ${IGNORE_WITH_PGSQL} |
137 |
. if (${PGSQL_VER} == "${VER}") |
137 |
. if (${PGSQL_VER} == "${VER}") |
138 |
IGNORE= Does not work with postgresql${PGSQL_VER}-client PostgresSQL (${BROKEN_WITH_PGSQL} not supported) |
138 |
IGNORE= Does not work with postgresql${PGSQL_VER}-client PostgresSQL (${IGNORE_WITH_PGSQL} not supported) |
139 |
. endif |
139 |
. endif |
140 |
. endfor |
140 |
. endfor |
141 |
.endif # BROKEN_WITH_PGSQL |
141 |
.endif # IGNORE_WITH_PGSQL |
142 |
LIB_DEPENDS+= pq.${PGSQL${PGSQL_VER}_LIBVER}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client |
142 |
LIB_DEPENDS+= pq.${PGSQL${PGSQL_VER}_LIBVER}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client |
143 |
.else |
143 |
.else |
144 |
IGNORE= Unknown PostgreSQL version: ${PGSQL_VER} |
144 |
IGNORE= Unknown PostgreSQL version: ${PGSQL_VER} |