1 # $NetBSD: Makefile,v 1.5 2013/02/06 23:20:54 jperkin Exp $
3 PKGNAME= ${DISTNAME:S/-/-client-/}
5 COMMENT= MySQL 5, a free SQL database (client)
7 CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*}
9 .include "Makefile.common"
11 CMAKE_ARGS+= -DWITHOUT_SERVER=ON
12 UNWRAP_FILES+= scripts/mysql_config
14 INSTALL_DIRS+= client include libmysql man scripts tests
16 REPLACE_PERL= scripts/mysql_convert_table_format.sh
17 REPLACE_PERL+= scripts/mysql_find_rows.sh
18 REPLACE_PERL+= scripts/mysql_fix_extensions.sh
19 REPLACE_PERL+= scripts/mysql_fix_privilege_tables.sh
20 REPLACE_PERL+= scripts/mysql_install_db.pl.in
21 REPLACE_PERL+= scripts/mysql_secure_installation.pl.in
22 REPLACE_PERL+= scripts/mysql_setpermission.sh
23 REPLACE_PERL+= scripts/mysql_zap.sh
24 REPLACE_PERL+= scripts/mysqlaccess.sh
25 REPLACE_PERL+= scripts/mysqld_multi.sh
26 REPLACE_PERL+= scripts/mysqldumpslow.sh
27 REPLACE_PERL+= scripts/mysqlhotcopy.sh
29 # Replace manual pages which only include other ones with a symbolic link
30 # if manual compression is activated. The manual pages won't work otherwise.
33 . for mf in mysql_client_test_embedded.1 mysqltest_embedded.1
34 ${RM} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf}
35 ${LN} -s ${mf:S/_embedded//} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf}
39 .include "../../devel/readline/buildlink3.mk"
40 .include "../../mk/bsd.pkg.mk"