| @@ -1,38 +1,37 @@ | | | @@ -1,38 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.11 2013/07/31 18:51:41 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2013/08/31 02:08:32 taca Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${DISTNAME:S/-/-client-/} | | 3 | PKGNAME= ${DISTNAME:S/-/-client-/} |
| | | 4 | PKGREVISION= 1 |
4 | SVR4_PKGNAME= mysqc | | 5 | SVR4_PKGNAME= mysqc |
5 | COMMENT= MySQL 5, a free SQL database (client) | | 6 | COMMENT= MySQL 5, a free SQL database (client) |
6 | | | 7 | |
7 | CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*} | | 8 | CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*} |
8 | | | 9 | |
9 | .include "Makefile.common" | | 10 | .include "Makefile.common" |
10 | | | 11 | |
11 | CMAKE_ARGS+= -DWITHOUT_SERVER=ON | | 12 | CMAKE_ARGS+= -DWITHOUT_SERVER=ON |
12 | CMAKE_ARGS+= -DWITH_UNIT_TESTS=OFF | | 13 | CMAKE_ARGS+= -DWITH_UNIT_TESTS=OFF |
13 | UNWRAP_FILES+= scripts/mysql_config | | 14 | UNWRAP_FILES+= scripts/mysql_config |
14 | INFO_FILES= yes | | 15 | INFO_FILES= yes |
15 | INSTALL_DIRS+= client include libmysql man scripts tests | | 16 | INSTALL_DIRS+= client include libmysql man scripts tests |
16 | | | 17 | |
17 | REPLACE_PERL= scripts/mysql_convert_table_format.sh | | 18 | REPLACE_PERL= scripts/mysql_convert_table_format.sh |
18 | REPLACE_PERL+= scripts/mysql_find_rows.sh | | 19 | REPLACE_PERL+= scripts/mysql_find_rows.sh |
19 | REPLACE_PERL+= scripts/mysql_fix_extensions.sh | | 20 | REPLACE_PERL+= scripts/mysql_fix_extensions.sh |
20 | REPLACE_PERL+= scripts/mysql_fix_privilege_tables.sh | | 21 | REPLACE_PERL+= scripts/mysql_fix_privilege_tables.sh |
21 | REPLACE_PERL+= scripts/mysql_setpermission.sh | | 22 | REPLACE_PERL+= scripts/mysql_setpermission.sh |
22 | REPLACE_PERL+= scripts/mysql_zap.sh | | 23 | REPLACE_PERL+= scripts/mysql_zap.sh |
23 | REPLACE_PERL+= scripts/mysqlaccess.sh | | 24 | REPLACE_PERL+= scripts/mysqlaccess.sh |
24 | REPLACE_PERL+= scripts/mysqld_multi.sh | | 25 | REPLACE_PERL+= scripts/mysqld_multi.sh |
25 | REPLACE_PERL+= scripts/mysqldumpslow.sh | | 26 | REPLACE_PERL+= scripts/mysqldumpslow.sh |
26 | REPLACE_PERL+= scripts/mysqlhotcopy.sh | | 27 | REPLACE_PERL+= scripts/mysqlhotcopy.sh |
27 | | | 28 | |
28 | # Replace manual pages which only include other ones with a symbolic link | | 29 | # Replace manual pages which only include other ones with a symbolic link. |
29 | # if manual compression is activated. The manual pages won't work otherwise. | | 30 | # It is for manual compression is activated or mandoc(1) is used. |
30 | .if defined(MANZ) | | | |
31 | post-install: | | 31 | post-install: |
32 | . for mf in mysql_client_test_embedded.1 mysqltest_embedded.1 | | 32 | .for mf in mysql_client_test_embedded.1 mysqltest_embedded.1 |
33 | ${RM} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf} | | 33 | ${RM} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf} |
34 | ${LN} -s ${mf:S/_embedded//} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf} | | 34 | ${LN} -s ${mf:S/_embedded//} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf} |
35 | . endfor | | 35 | .endfor |
36 | .endif | | | |
37 | | | 36 | |
38 | .include "../../mk/bsd.pkg.mk" | | 37 | .include "../../mk/bsd.pkg.mk" |