aboutsummaryrefslogtreecommitdiff
path: root/databases/mariadb101-client/Makefile
blob: a1a6ef323851d6345a6016a7b40bcc8c8175080d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $FreeBSD$

PORTNAME=	mariadb
PKGNAMESUFFIX=	101-client

COMMENT=	Multithreaded SQL database (client)

MASTERDIR=	${.CURDIR}/../mariadb101-server

FILESDIR=	${.CURDIR}/files
PATCHDIR=	${.CURDIR}/files
PLIST=		${.CURDIR}/pkg-plist

CMAKE_ARGS+=	-DWITHOUT_SERVER=1
INSTALL_TARGET=	install

USE_LDCONFIG=	${PREFIX}/lib/mysql

CLIENT_ONLY=	yes

post-install:
	${RM} ${STAGEDIR}${PREFIX}/bin/wsrep*
	${RM} ${STAGEDIR}${PREFIX}/bin/mysqld_safe_helper
	${RM} ${STAGEDIR}${PREFIX}/share/aclocal/mysql.m4
	${RM} -r ${STAGEDIR}${PREFIX}/share/pkgconfig
	${RM} -r ${STAGEDIR}${PREFIX}/include/mysql/private
.	for b in mysql mysqladmin mysqlbinlog mysqlcheck mysqldump \
		mysqlimport mysqlshow mysqlslap
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${b}
.	endfor
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/libmysqlclient.so.18
.	for b in dialog.so mysql_clear_password.so client_ed25519.so
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/plugin/${b}
.	endfor
	# Fix https://mariadb.atlassian.net/browse/MDEV-9388
	@${REINPLACE_CMD} 's/-l-pthread/-lpthread/' ${STAGEDIR}${PREFIX}/bin/mysql_config

post-install-GSSAPI_NONE:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/plugin/auth_gssapi_client.so

.include "${MASTERDIR}/Makefile"