Merge branch 'master' into erp5-cluster
[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   ../groonga/buildout.cfg
8   ../jemalloc/buildout.cfg
9   ../libaio/buildout.cfg
10   ../libxml2/buildout.cfg
11   ../ncurses/buildout.cfg
12   ../openssl/buildout.cfg
13   ../pcre/buildout.cfg
14   ../pkgconfig/buildout.cfg
15   ../readline/buildout.cfg
16   ../zlib/buildout.cfg
17
18 parts =
19   mariadb
20
21 [mariadb]
22 recipe = slapos.recipe.cmmi
23 version = 10.0.20
24 url = https://downloads.mariadb.org/f/mariadb-${:version}/source/mariadb-${:version}.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
25 md5sum = 59d6c00827ad56f2ac76340fece32fc0
26 patch-options = -p0
27 patches =
28   ${:_profile_base_location_}/mariadb_10.0.8_create_system_tables__no_test.patch#a176d491cf45fccd53ee397c70393bc4
29 configure-command = ${cmake:location}/bin/cmake
30 configure-options =
31   -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
32   -DBUILD_CONFIG=mysql_release
33   -DDEFAULT_CHARSET=utf8
34   -DDEFAULT_COLLATION=utf8_unicode_ci
35   -DWITH_SSL=system
36   -DWITH_ZLIB=system
37   -DWITH_READLINE=0
38   -DWITH_PIC=1
39   -DWITH_PCRE=system
40   -DENABLE_DTRACE=0
41   -DWITH_EXTRA_CHARSETS=complex
42   -DWITH_EMBEDDED_SERVER=0
43   -DWITH_JEMALLOC=yes
44   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
45   -DWITHOUT_MROONGA_STORAGE_ENGINE=1
46   -DWITHOUT_DAEMON_EXAMPLE=1
47   -DCMAKE_C_FLAGS="-I${jemalloc:location}/include -I${libaio:location}/include -I${libxml2:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${pcre:location}/include -I${readline5:location}/include -I${zlib:location}/include"
48   -DCMAKE_CXX_FLAGS="-I${jemalloc:location}/include -I${libaio:location}/include -I${libxml2:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${pcre:location}/include -I${readline5:location}/include -I${zlib:location}/include"
49   -DCMAKE_INSTALL_RPATH=${jemalloc:location}/lib:${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${pcre:location}/lib:${readline5:location}/lib:${zlib:location}/lib
50 environment =
51   CMAKE_PROGRAM_PATH=${cmake:location}/bin
52   CMAKE_INCLUDE_PATH=${libaio:location}/include:${libaio:location}/include:${libxml2:location}/include:${ncurses:location}/include:${openssl:location}/include:${pcre:location}/include:${readline5:location}/include:${zlib:location}/include
53   CMAKE_LIBRARY_PATH=${libaio:location}/lib:{libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${pcre:location}/lib:${readline5:location}/lib:${zlib:location}/lib
54   LDFLAGS=-L${jemalloc:location}/lib -Wl,-rpath=${jemalloc:location}/lib -L${libaio:location}/lib -Wl,-rpath=${libaio:location}/lib -L${pcre:location}/lib -L${zlib:location}/lib
55
56 [mroonga-mariadb]
57 # mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
58 # http://mroonga.github.com/
59 recipe = slapos.recipe.cmmi
60 url = http://packages.groonga.org/source/mroonga/mroonga-5.04.tar.gz
61 md5sum = 5679e317050df819c0f812de49e27043
62 configure-command = mkdir fake_mariadb_source && ln -s ${mariadb:location}/include/mysql/private fake_mariadb_source/sql && ./configure
63 configure-options =
64   --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
65   --with-mysql-source=fake_mariadb_source
66   --with-mysql-config=${mariadb:location}/bin/mysql_config
67   --disable-static
68   --disable-document
69 patch-options = -p1
70 patches =
71   ${:_profile_base_location_}/mroonga_boolean.patch#36645770ae612515b74b90884ecc59fc
72 environment =
73   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
74   CPPFLAGS=-I${groonga:location}/include/groonga -I${pcre:location}/include
75   LDFLAGS=-L${groonga:location}/lib
76   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig