mroonga : add a patch to make boolean search strict.
[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   ../libevent/buildout.cfg
11   ../libxml2/buildout.cfg
12   ../ncurses/buildout.cfg
13   ../openssl/buildout.cfg
14   ../pcre/buildout.cfg
15   ../pkgconfig/buildout.cfg
16   ../readline/buildout.cfg
17   ../zlib/buildout.cfg
18
19 parts =
20   mariadb
21
22 [mariadb]
23 recipe = slapos.recipe.cmmi
24 version = 10.0.14
25 url = https://downloads.mariadb.org/f/mariadb-${:version}/source/mariadb-${:version}.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
26 md5sum = 80fea71de54a9cfa7f5508df53d3f06d
27 # compile directory is required to build mysql plugins.
28 keep-compile-dir = true
29 patch-options = -p0
30 patches =
31   ${:_profile_base_location_}/mariadb_10.0.8_create_system_tables__no_test.patch#a176d491cf45fccd53ee397c70393bc4
32 configure-command = ${cmake:location}/bin/cmake
33 configure-options =
34   -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
35   -DBUILD_CONFIG=mysql_release
36   -DDEFAULT_CHARSET=utf8
37   -DDEFAULT_COLLATION=utf8_unicode_ci
38   -DWITH_SSL=system
39   -DWITH_ZLIB=system
40   -DWITH_READLINE=0
41   -DWITH_PIC=1
42   -DWITH_PCRE=system
43   -DENABLE_DTRACE=0
44   -DWITH_EXTRA_CHARSETS=complex
45   -DWITH_EMBEDDED_SERVER=0
46   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
47   -DWITHOUT_DAEMON_EXAMPLE=1
48   -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"
49   -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"
50   -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
51   -DWITHOUT_TOKUDB=true
52 environment =
53   CMAKE_PROGRAM_PATH=${cmake:location}/bin
54   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
55   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
56   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
57 make-targets = install && make clean
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.06.tar.gz
64 md5sum = 042bc1fbc3f25593be4484529d598144
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 patch-options = -p1
71 patches =
72   ${:_profile_base_location_}/mroonga_boolean.patch#36645770ae612515b74b90884ecc59fc
73 environment =
74   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
75   CPPFLAGS=-I${groonga:location}/include/groonga -I${pcre:location}/include
76   LDFLAGS=-L${groonga:location}/lib
77   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig