| @@ -1,40 +1,41 @@ | | | @@ -1,40 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.8 2010/11/14 16:39:36 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.9 2012/01/23 08:44:22 sbd Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${DISTNAME:S/-/-server-/} | | 3 | PKGNAME= ${DISTNAME:S/-/-server-/} |
4 | SVR4_PKGNAME= mysqs | | 4 | SVR4_PKGNAME= mysqs |
5 | COMMENT= MySQL 5, a free SQL database (server) | | 5 | COMMENT= MySQL 5, a free SQL database (server) |
6 | | | 6 | |
7 | CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} | | 7 | CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} |
8 | | | 8 | |
9 | PKG_DESTDIR_SUPPORT= user-destdir | | 9 | PKG_DESTDIR_SUPPORT= user-destdir |
10 | | | 10 | |
11 | .include "../../databases/mysql51-client/Makefile.common" | | 11 | .include "../../databases/mysql51-client/Makefile.common" |
12 | | | 12 | |
13 | CONFIGURE_ARGS+= --with-libwrap | | 13 | CONFIGURE_ARGS+= --with-libwrap |
14 | CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER} | | 14 | CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER} |
15 | | | 15 | |
16 | .if !empty(PKG_OPTIONS:Membedded-server) | | 16 | .if !empty(PKG_OPTIONS:Membedded-server) |
17 | CONFIGURE_ARGS+= --with-embedded-privilege-control | | 17 | CONFIGURE_ARGS+= --with-embedded-privilege-control |
18 | CONFIGURE_ARGS+= --with-embedded-server | | 18 | CONFIGURE_ARGS+= --with-embedded-server |
19 | CONFIGURE_ARGS+= --with-pic | | 19 | CONFIGURE_ARGS+= --with-pic |
20 | PLIST.embedded= yes | | 20 | PLIST.embedded= yes |
21 | .endif | | 21 | .endif |
22 | | | 22 | |
23 | .if !empty(PKG_OPTIONS:Mndb-cluster) | | 23 | .if !empty(PKG_OPTIONS:Mndb-cluster) |
24 | CONFIGURE_ARGS+= --with-plugins=innobase,ndbcluster | | 24 | CONFIGURE_ARGS+= --with-plugins=innobase,ndbcluster |
25 | REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter \ | | 25 | REPLACE_PERL+= storage/ndb/tools/ndb_error_reporter \ |
26 | storage/ndb/tools/ndb_size.pl | | 26 | storage/ndb/tools/ndb_size.pl |
27 | PLIST.ndb= yes | | 27 | PLIST.ndb= yes |
| | | 28 | BUILDLINK_DEPMETHOD.readline= full |
28 | .else | | 29 | .else |
29 | CONFIGURE_ARGS+= --with-plugins=innobase | | 30 | CONFIGURE_ARGS+= --with-plugins=innobase |
30 | .endif | | 31 | .endif |
31 | | | 32 | |
32 | .if !empty(PKG_OPTIONS:Mpstack) | | 33 | .if !empty(PKG_OPTIONS:Mpstack) |
33 | CONFIGURE_ARGS+= --with-pstack | | 34 | CONFIGURE_ARGS+= --with-pstack |
34 | PLIST.pstack= yes | | 35 | PLIST.pstack= yes |
35 | .endif | | 36 | .endif |
36 | | | 37 | |
37 | .if !empty(PKG_OPTIONS:Mmysqlmanager) | | 38 | .if !empty(PKG_OPTIONS:Mmysqlmanager) |
38 | CONFIGURE_ARGS+= --with-mysqlmanager | | 39 | CONFIGURE_ARGS+= --with-mysqlmanager |
39 | PLIST.manager= yes | | 40 | PLIST.manager= yes |
40 | .endif | | 41 | .endif |
| @@ -74,31 +75,32 @@ REPLACE_PERL+= mysql-test/lib/My/SafePr | | | @@ -74,31 +75,32 @@ REPLACE_PERL+= mysql-test/lib/My/SafePr |
74 | | | 75 | |
75 | INSTALLATION_DIRS= bin | | 76 | INSTALLATION_DIRS= bin |
76 | | | 77 | |
77 | .include "../../mk/bsd.prefs.mk" | | 78 | .include "../../mk/bsd.prefs.mk" |
78 | | | 79 | |
79 | .if !empty(PKGSRC_COMPILER:Msunpro) | | 80 | .if !empty(PKGSRC_COMPILER:Msunpro) |
80 | CFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ | | 81 | CFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ |
81 | CXXFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ | | 82 | CXXFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ |
82 | .endif | | 83 | .endif |
83 | | | 84 | |
84 | .include "../../databases/mysql51-client/buildlink3.mk" | | 85 | .include "../../databases/mysql51-client/buildlink3.mk" |
85 | .include "../../security/tcp_wrappers/buildlink3.mk" | | 86 | .include "../../security/tcp_wrappers/buildlink3.mk" |
86 | | | 87 | |
87 | # We only need readline to placate the configure script. None of the | | 88 | # Only 'ndb_mgm' needs readline otherwise we only need it to placate the |
88 | # binaries are actually linked against -lreadline, so make this only | | 89 | # configure script. As ndb_mgm is only build if the 'ndb-cluster' option |
89 | # a build-time dependency. | | 90 | # is enabled that option sets a full dependency on readline otherwise |
| | | 91 | # make this only a build-time dependency. |
90 | # | | 92 | # |
91 | BUILDLINK_DEPMETHOD.readline= build | | 93 | BUILDLINK_DEPMETHOD.readline?= build |
92 | .include "../../devel/readline/buildlink3.mk" | | 94 | .include "../../devel/readline/buildlink3.mk" |
93 | | | 95 | |
94 | post-configure: | | 96 | post-configure: |
95 | cd ${WRKSRC}/include && cp -f config.h my_config.h | | 97 | cd ${WRKSRC}/include && cp -f config.h my_config.h |
96 | ${RM} -f ${WRKSRC}/mysql-test/mysql-test-run | | 98 | ${RM} -f ${WRKSRC}/mysql-test/mysql-test-run |
97 | | | 99 | |
98 | post-build: | | 100 | post-build: |
99 | cd ${WRKSRC}/scripts && \ | | 101 | cd ${WRKSRC}/scripts && \ |
100 | ${BUILD_MAKE_CMD} mysqld_safe mysql_install_db | | 102 | ${BUILD_MAKE_CMD} mysqld_safe mysql_install_db |
101 | | | 103 | |
102 | post-install: | | 104 | post-install: |
103 | ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqld_safe \ | | 105 | ${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqld_safe \ |
104 | ${DESTDIR}${PREFIX}/bin | | 106 | ${DESTDIR}${PREFIX}/bin |