summaryrefslogtreecommitdiff
path: root/packages/dev-db/mariadb-connector-c/mysql-connector-c.exlib
blob: dd7b21bdef3a93d209e3c34715e03c34a238e2a0 (plain)
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
42
43
44
45
46
47
48
49
50
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>



require github [ user=MariaDB tag=v${PV} force_git_clone=true ]
require cmake [ api=2 ]

SLOT="0"

SUMMARY="C client library for MariaDB/MySQL"
HOMEPAGE="https://mariadb.org/"
LICENCES="LGPL-2.1"

MYOPTIONS="
	curl
	gnutls
	kerberos
	( providers: libressl openssl ) [[ number-selected = exactly-one ]]
"

DEPENDENCIES="
	build+run:
		sys-libs/zlib
		curl? ( net-misc/curl )
		kerberos? ( virtual/kerberos )
		gnutls? ( dev-libs/gnutls[>=3.3.24] )
		!gnutls? (
			providers:libressl? ( dev-libs/libressl:= )
			providers:openssl? ( dev-libs/openssl )
		)
"

CMAKE_SRC_CONFIGURE_PARAMS+=(
	-DWITH_EXTERNAL_ZLIB=ON
)

CMAKE_SRC_CONFIGURE_OPTIONS=(
	'gnutls WITH_SSL=GNUTLS'
	'!gnutls WITH_SSL=OPENSSL'
	'kerberos CLIENT_PLUGIN_AUTH_GSSAPI_CLIENT=DYNAMIC'
)


CMAKE_SRC_CONFIGURE_WITHS=(
	curl

)

CMAKE_SRC_CONFIGURE_TESTS=( '-DWITH_UNIT_TESTS=on -DWITH_UNIT_TESTS=OFF' )