| @@ -1,34 +1,38 @@ | | | @@ -1,34 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.4 2011/09/17 11:33:35 tron Exp $ | | 1 | # $NetBSD: Makefile,v 1.5 2011/09/17 12:56:17 tron Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${DISTNAME:S/-/-server-/} | | 3 | PKGNAME= ${DISTNAME:S/-/-server-/} |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | SVR4_PKGNAME= mysqs | | 5 | SVR4_PKGNAME= mysqs |
6 | COMMENT= MySQL 5, a free SQL database (server) | | 6 | COMMENT= MySQL 5, a free SQL database (server) |
7 | | | 7 | |
8 | CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} | | 8 | CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} |
9 | | | 9 | |
10 | # might be removed in the future | | 10 | # might be removed in the future |
11 | # if mysqld_safe script is installed here, or rc.d script invokes mysqld | | 11 | # if mysqld_safe script is installed here, or rc.d script invokes mysqld |
12 | DEPENDS+= mysql-client>=${PKGVERSION_NOREV}:../../databases/mysql55-client | | 12 | DEPENDS+= mysql-client>=${PKGVERSION_NOREV}:../../databases/mysql55-client |
13 | | | 13 | |
14 | .include "../../databases/mysql55-client/Makefile.common" | | 14 | .include "../../databases/mysql55-client/Makefile.common" |
15 | | | 15 | |
16 | INFO_FILES= yes | | 16 | INFO_FILES= yes |
17 | CMAKE_ARGS+= -DWITH_LIBWRAP=ON | | 17 | CMAKE_ARGS+= -DWITH_LIBWRAP=ON |
18 | | | 18 | |
19 | .if !empty(PKG_OPTIONS:Membedded-server) | | 19 | .if !empty(PKG_OPTIONS:Membedded-server) |
20 | CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=ON | | 20 | CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=ON |
21 | PLIST.embedded= yes | | 21 | PLIST.embedded= yes |
| | | 22 | .else |
| | | 23 | # We only need readline to placate the configure script if we don't build |
| | | 24 | # the embedded server as it is the only binary linked against "readline". |
| | | 25 | BUILDLINK_DEPMETHOD.readline= build |
22 | .endif | | 26 | .endif |
23 | | | 27 | |
24 | # ndb-cluster does not configure with cmake | | 28 | # ndb-cluster does not configure with cmake |
25 | #.if !empty(PKG_OPTIONS:Mndb-cluster) | | 29 | #.if !empty(PKG_OPTIONS:Mndb-cluster) |
26 | #CMAKE_ARGS+= -DWITH_NDBCLUSTER_STORAGE_ENGINE=ON | | 30 | #CMAKE_ARGS+= -DWITH_NDBCLUSTER_STORAGE_ENGINE=ON |
27 | #REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter | | 31 | #REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter |
28 | #REPLACE_PERL+= storage/ndb/tools/ndb_size.pl | | 32 | #REPLACE_PERL+= storage/ndb/tools/ndb_size.pl |
29 | #PLIST.ndb= yes | | 33 | #PLIST.ndb= yes |
30 | #.endif | | 34 | #.endif |
31 | | | 35 | |
32 | PLIST_VARS+= embedded ndb auth_socket | | 36 | PLIST_VARS+= embedded ndb auth_socket |
33 | | | 37 | |
34 | .if ${OPSYS} == "Linux" | | 38 | .if ${OPSYS} == "Linux" |