aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mariadb102-client/Makefile
blob: 59d0b0af46b3fd6ec11779d350a61b4c1e46171b (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
# $FreeBSD$

PORTNAME=   mariadb
PKGNAMESUFFIX=  102-client

COMMENT=    Multithreaded SQL database (client)

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

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

CMAKE_ARGS+=    -DWITHOUT_SERVER=1 \
        -DCONC_WITH_UNITTEST=0 \
        -DCONC_WITH_MYSQLCOMPAT=1 \
        -DWITH_WSREP=0

USE_LDCONFIG=   ${PREFIX}/lib/mysql

CLIENT_ONLY=    yes

post-install:
    ${RM} ${STAGEDIR}${PREFIX}/share/aclocal/mysql.m4
    ${RM} -r ${STAGEDIR}${PREFIX}/share/pkgconfig
    ${RM} -r ${STAGEDIR}${PREFIX}/include/mysql/private
    ${RM} -r ${STAGEDIR}${DATADIR}/policy
    ${RM} ${STAGEDIR}${PREFIX}/man/man1/aria* ${STAGEDIR}${PREFIX}/man/man1/myisam*
    # 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"