aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mariadb103-client/Makefile
blob: f65a0d5c8f7bcce25d5da50d732d3a7d13f7de99 (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
# Created by: Bernard Spil <brnrd@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mariadb
PKGNAMESUFFIX=  103-client

COMMENT=    Multithreaded SQL database (client)

MASTERDIR=  ${.CURDIR}/../mariadb103-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

CONFLICTS_INSTALL=  databases/mytop

post-configure:
    ${REINPLACE_CMD} -Ee 's|(#define INCLUDE.*)"$$|\1 -I${PREFIX}/include"|' \
        -e 's|(#define LIBS.*)"\\ $$|\1 -L${PREFIX}/lib "\\|' \
        ${WRKSRC}/libmariadb/mariadb_config/mariadb_config.c

post-install:
    ${RM} -r ${STAGEDIR}${DATADIR}
    ${RM} -r ${STAGEDIR}${PREFIX}/include/mysql/server

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

.include "${MASTERDIR}/Makefile"