version up : groonga 5.1.0 and mroonga 5.10.
[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.1.9
24 url = https://downloads.mariadb.org/f/mariadb-${:version}/source/mariadb-${:version}.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
25 md5sum = 71d0e2408a671e1125c1310ce657f688
26 location = ${buildout:parts-directory}/${:_buildout_section_name_}
27 patch-options = -p0
28 patches =
29   ${:_profile_base_location_}/mariadb_10.1.8_create_system_tables__no_test.patch#d2f337e76b290071daf8985a79bda82a
30 configure-command = ${cmake:location}/bin/cmake
31 configure-options =
32   -DCMAKE_INSTALL_PREFIX=${:location}
33   -DBUILD_CONFIG=mysql_release
34   -DDEFAULT_CHARSET=utf8
35   -DDEFAULT_COLLATION=utf8_unicode_ci
36   -DWITH_SSL=system
37   -DWITH_ZLIB=system
38   -DWITH_READLINE=0
39   -DWITH_PIC=1
40   -DWITH_PCRE=system
41   -DENABLE_DTRACE=0
42   -DWITH_EXTRA_CHARSETS=complex
43   -DWITH_EMBEDDED_SERVER=0
44   -DWITH_JEMALLOC=yes
45   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
46   -DWITHOUT_MROONGA_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 environment =
52   CMAKE_PROGRAM_PATH=${cmake:location}/bin
53   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
54   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
55   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
56 post-install =
57   mkdir -p ${:location}/include/wsrep &&
58   cp -p wsrep/wsrep_api.h ${:location}/include/wsrep
59
60 [mroonga-mariadb]
61 # mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
62 # http://mroonga.github.com/
63 recipe = slapos.recipe.cmmi
64 url = http://packages.groonga.org/source/mroonga/mroonga-5.10.tar.gz
65 md5sum = 2fc6a7ae9e58bfd3430cdc8cb38ccf7f
66 pre-configure =
67   mkdir fake_mariadb_source &&
68   ln -s ${mariadb:location}/include/mysql/private fake_mariadb_source/sql
69 configure-options =
70   --with-mysql-source=fake_mariadb_source
71   --with-mysql-config=${mariadb:location}/bin/mysql_config
72   --disable-static
73   --disable-document
74 patch-options = -p1
75 patches =
76   ${:_profile_base_location_}/mroonga_boolean.patch#36645770ae612515b74b90884ecc59fc
77 environment =
78   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
79   CPPFLAGS=-I${groonga:location}/include/groonga -I${pcre:location}/include
80   LDFLAGS=-L${groonga:location}/lib
81   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig