pkgsrc/databases/mysql56-client/Makefile
taca 22d082da22 Always create symbolic links avoid to use ".so" macro and stop ugly
messages from daily (or weekly).

Rebuilding man page index:
man-gpl-tmp2/mysql_client_test.1: No such file or directory
man-gpl-tmp2/mysqltest.1: No such file or directory

Bump PKGREVISION.
2013-08-31 02:08:32 +00:00

37 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2013/08/31 02:09:25 taca Exp $
PKGNAME= ${DISTNAME:S/-/-client-/}
PKGREVISION= 1
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_install_db.pl.in
REPLACE_PERL+= scripts/mysql_secure_installation.pl.in
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
# Replace manual pages which only include other ones with a symbolic link
# It is for manual compression is activated or mandoc(1) is used.
post-install:
.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}
.endfor
.include "../../mk/bsd.pkg.mk"