2013-05-31 14:39:35 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2013/05/31 12:39:47 wiz Exp $
|
2011-04-25 23:12:52 +02:00
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-client-/}
|
2013-05-31 14:39:35 +02:00
|
|
|
PKGREVISION= 1
|
2011-04-25 23:12:52 +02:00
|
|
|
SVR4_PKGNAME= mysqc
|
|
|
|
COMMENT= MySQL 5, a free SQL database (client)
|
|
|
|
|
|
|
|
CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*}
|
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
|
|
|
CMAKE_ARGS+= -DWITHOUT_SERVER=ON
|
|
|
|
UNWRAP_FILES+= scripts/mysql_config
|
|
|
|
INFO_FILES= yes
|
|
|
|
INSTALL_DIRS+= client include libmysql man scripts tests
|
|
|
|
|
|
|
|
REPLACE_PERL= scripts/mysql_convert_table_format.sh
|
|
|
|
REPLACE_PERL+= scripts/mysql_find_rows.sh
|
|
|
|
REPLACE_PERL+= scripts/mysql_fix_extensions.sh
|
|
|
|
REPLACE_PERL+= scripts/mysql_fix_privilege_tables.sh
|
|
|
|
REPLACE_PERL+= scripts/mysql_setpermission.sh
|
|
|
|
REPLACE_PERL+= scripts/mysql_zap.sh
|
|
|
|
REPLACE_PERL+= scripts/mysqlaccess.sh
|
|
|
|
REPLACE_PERL+= scripts/mysqld_multi.sh
|
|
|
|
REPLACE_PERL+= scripts/mysqldumpslow.sh
|
|
|
|
REPLACE_PERL+= scripts/mysqlhotcopy.sh
|
|
|
|
|
2012-12-22 11:56:14 +01:00
|
|
|
# Replace manual pages which only include other ones with a symbolic link
|
|
|
|
# if manual compression is activated. The manual pages won't work otherwise.
|
|
|
|
.if defined(MANZ)
|
|
|
|
post-install:
|
2013-02-12 21:36:28 +01:00
|
|
|
. for mf in mysql_client_test_embedded.1 mysqltest_embedded.1
|
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf}
|
|
|
|
${LN} -s ${mf:S/_embedded//} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${mf}
|
2012-12-22 11:56:14 +01:00
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2011-04-25 23:12:52 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|