fixup! mariadb: Disable TokuDB until build issue with GCC 4.9 has been fixed.
[slapos.git] / component / mariadb / buildout.cfg
1 # MariaDB - a database server that offers drop-in replacement functionality for MySQL.
2 # http://mariadb.org/
3
4 [buildout]
5 extends =
6   ../cmake/buildout.cfg
7   ../zlib/buildout.cfg
8   ../groonga/buildout.cfg
9   ../libaio/buildout.cfg
10   ../libevent/buildout.cfg
11   ../ncurses/buildout.cfg
12   ../openssl/buildout.cfg
13   ../pkgconfig/buildout.cfg
14   ../readline/buildout.cfg
15   ../libxml2/buildout.cfg
16
17 parts =
18   mariadb
19
20 [mariadb]
21 # mroonga-mariadb should be rebuilt when mariadb is rebuilt. to
22 # achieve this, please modify 'revision' value below each time you
23 # modify anything (but version) in [mariadb] target.
24 recipe = slapos.recipe.cmmi
25 version = 10.0.12
26 revision = 2
27 url = https://downloads.mariadb.org/f/mariadb-${:version}/source/mariadb-${:version}.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
28 md5sum = 6e9a7c075526f8f2f83ad8e0933bab2f
29 # compile directory is required to build mysql plugins.
30 keep-compile-dir = true
31 patch-options = -p0
32 patches =
33   ${:_profile_base_location_}/mariadb_10.0.8_create_system_tables__no_test.patch#a176d491cf45fccd53ee397c70393bc4
34 configure-command = ${cmake:location}/bin/cmake
35 configure-options =
36   -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
37   -DBUILD_CONFIG=mysql_release
38   -DDEFAULT_CHARSET=utf8
39   -DDEFAULT_COLLATION=utf8_unicode_ci
40   -DWITH_SSL=system
41   -DWITH_ZLIB=system
42   -DWITH_READLINE=0
43   -DWITH_PIC=1
44   -DENABLE_DTRACE=0
45   -DWITH_EXTRA_CHARSETS=complex
46   -DWITH_EMBEDDED_SERVER=0
47   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
48   -DWITHOUT_DAEMON_EXAMPLE=1
49   -DCMAKE_C_FLAGS="-I${libaio:location}/include -I${libxml2:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${readline5:location}/include -I${zlib:location}/include"
50   -DCMAKE_CXX_FLAGS="-I${libaio:location}/include -I${libxml2:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${readline5:location}/include -I${zlib:location}/include"
51   -DCMAKE_INSTALL_RPATH=${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
52   -DWITHOUT_TOKUDB=true
53 environment =
54   CMAKE_PROGRAM_PATH=${cmake:location}/bin
55   CMAKE_INCLUDE_PATH=${libaio:location}/include:${libxml2:location}/include:${ncurses:location}/include:${openssl:location}/include:${readline5:location}/include:${zlib:location}/include
56   CMAKE_LIBRARY_PATH=${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
57   LDFLAGS=-L${libaio:location}/lib -Wl,-rpath=${libaio:location}/lib -L${zlib:location}/lib
58
59 [mroonga-mariadb]
60 # mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
61 # http://mroonga.github.com/
62 recipe = slapos.recipe.cmmi
63 url = http://packages.groonga.org/source/mroonga/mroonga-4.04.tar.gz
64 md5sum = a89987dad7b3e1d99014492e6135eec6
65 configure-options =
66   --with-mysql-source=${mariadb:location}__compile__/mariadb-${mariadb:version}
67   --with-mysql-config=${mariadb:location}/bin/mysql_config
68   --disable-static
69   --disable-document
70 depends =
71   ${mariadb:version}
72   ${mariadb:revision}
73   ${groonga-normalizer-mysql:version}
74 environment =
75   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
76   CPPFLAGS=-I${groonga:location}/include/groonga
77   LDFLAGS=-L${groonga:location}/lib
78   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig