2016-10-14 21:28:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.3 2016/10/14 19:28:28 adam Exp $
|
2016-09-16 08:49:11 +02:00
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-client-/}
|
|
|
|
COMMENT= MySQL 5, a free SQL database (client)
|
|
|
|
|
|
|
|
CONFLICTS= 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 testclients
|
|
|
|
|
|
|
|
# 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"
|