Lines 3-13
Link Here
|
3 |
# Provide support for MySQL |
3 |
# Provide support for MySQL |
4 |
# Feature: mysql |
4 |
# Feature: mysql |
5 |
# Usage: USES=mysql or USES=mysql:args |
5 |
# Usage: USES=mysql or USES=mysql:args |
6 |
# Valid ARGS: <version>, server, embedded |
6 |
# Valid ARGS: <version>, client, server, embedded |
7 |
# |
7 |
# |
8 |
# version If no version is given (by the maintainer via the port), try to |
8 |
# version If no version is given (by the maintainer via the port), try to |
9 |
# find the currently installed version. Fall back to default if |
9 |
# find the currently installed version. Fall back to default if |
10 |
# necessary (MySQL-5.6 = 56). |
10 |
# necessary (MySQL-5.6 = 56). |
|
|
11 |
# client Depends on the libmysqlclient library (default) |
11 |
# server/embedded |
12 |
# server/embedded |
12 |
# Depend on the server at run/build time. If none of these is |
13 |
# Depend on the server at run/build time. If none of these is |
13 |
# set, depends on the client. |
14 |
# set, depends on the client. |
Lines 40-45
_MYSQL_ARGS:= ${_MYSQL_ARGS:Nserver}
Link Here
|
40 |
_WANT_MYSQL_EMBEDDED= yes |
41 |
_WANT_MYSQL_EMBEDDED= yes |
41 |
_MYSQL_ARGS:= ${_MYSQL_ARGS:Nembedded} |
42 |
_MYSQL_ARGS:= ${_MYSQL_ARGS:Nembedded} |
42 |
.endif |
43 |
.endif |
|
|
44 |
.if ${_MYSQL_ARGS:Mclient} |
45 |
_WANT_MYSQL_CLIENT= yes |
46 |
_MYSQL_ARGS:= ${_MYSQL_ARGS:Nclient} |
47 |
.endif |
43 |
|
48 |
|
44 |
# Port requested a version |
49 |
# Port requested a version |
45 |
.if !empty(_MYSQL_ARGS) |
50 |
.if !empty(_MYSQL_ARGS) |
Lines 126-132
RUN_DEPENDS+= ${LOCALBASE}/libexec/mysqld:${_MYSQL_SERVER}
Link Here
|
126 |
.if defined(_WANT_MYSQL_EMBEDDED) |
131 |
.if defined(_WANT_MYSQL_EMBEDDED) |
127 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqld.a:${_MYSQL_SERVER} |
132 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqld.a:${_MYSQL_SERVER} |
128 |
.endif |
133 |
.endif |
129 |
.else |
134 |
.endif |
|
|
135 |
.if defined(_WANT_MYSQL_CLIENT) || \ |
136 |
!(defined(_WANT_MYSQL_SERVER) || defined(_WANT_MYSQL_EMBEDDED)) |
130 |
LIB_DEPENDS+= libmysqlclient.so.${MYSQL${MYSQL_VER}_LIBVER}:${_MYSQL_CLIENT} |
137 |
LIB_DEPENDS+= libmysqlclient.so.${MYSQL${MYSQL_VER}_LIBVER}:${_MYSQL_CLIENT} |
131 |
.endif |
138 |
.endif |
132 |
.else |
139 |
.else |