diff options
Diffstat (limited to 'rules/host-mysql.make')
-rw-r--r-- | rules/host-mysql.make | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/rules/host-mysql.make b/rules/host-mysql.make new file mode 100644 index 000000000..bcee0a3ba --- /dev/null +++ b/rules/host-mysql.make @@ -0,0 +1,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 |