summaryrefslogtreecommitdiffstats
path: root/rules/host-mysql.make
blob: bcee0a3ba6d127ee5ccbc65185b239b2bdf14f37 (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
51
52
53
54
55
56
# -*-makefile-*-
#
# Copyright (C) 2016 by Juergen Borleis <jbe@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_MYSQL) += host-mysql

#
# Paths and names
#
HOST_MYSQL_BOOST		= $(MYSQL_BOOST)
HOST_MYSQL_BOOST_SOURCE		= $(MYSQL_BOOST_SOURCE)
$(HOST_MYSQL_BOOST_SOURCE)	= MYSQL_BOOST
HOST_MYSQL_BOOST_DIR		= $(HOST_MYSQL_DIR)
HOST_BOOST_LICENSE		:= BSL-1.0

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

$(STATEDIR)/host-mysql.extract:
	@$(call targetinfo)
	@$(call clean, $(HOST_MYSQL_DIR))
	@$(call extract, HOST_MYSQL)
	@$(call extract, HOST_MYSQL_BOOST)
	@$(call patchin, HOST_MYSQL)
	@$(call touch)

# ----------------------------------------------------------------------------
# Prepare + Compile
# ----------------------------------------------------------------------------

#
# cmake
#
HOST_MYSQL_CONF_TOOL	:= cmake
HOST_MYSQL_CONF_OPT	:= \
	$(HOST_CMAKE_OPT) \
	-DBUILD_CONFIG=mysql_release \
	-DCMAKE_INSTALL_PREFIX:PATH=/usr \
	-DSTACK_DIRECTION=1 \
	-DBOOST_INCLUDE_DIR=$(HOST_MYSQL_BOOST_DIR) \
	-DLOCAL_BOOST_DIR=$(HOST_MYSQL_BOOST_DIR) \
	-DHAVE_LLVM_LIBCPP_EXITCODE=no \
	-DHAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE_EXITCODE=no \
	-DWITH_ZLIB="bundled"

# vim: syntax=make