version up : MariaDB 10.0.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   ../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 recipe = slapos.recipe.cmmi
22 version = 10.0.10
23 revision = 1
24 url = http://downloads.askmonty.org/f/mariadb-${:version}/kvm-tarbake-jaunty-x86/mariadb-${:version}.tar.gz/from/http://ftp.osuosl.org/pub/mariadb
25 md5sum = 14ce22b8197d4eae88d237776d47220f
26 # compile directory is required to build mysql plugins.
27 keep-compile-dir = true
28 patch-options = -p0
29 patches =
30   ${:_profile_base_location_}/mariadb_10.0.8_create_system_tables__no_test.patch#a176d491cf45fccd53ee397c70393bc4
31 configure-command = ${cmake:location}/bin/cmake
32 configure-options =
33   -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
34   -DBUILD_CONFIG=mysql_release
35   -DDEFAULT_CHARSET=utf8
36   -DDEFAULT_COLLATION=utf8_unicode_ci
37   -DWITH_SSL=system
38   -DWITH_ZLIB=system
39   -DWITH_READLINE=0
40   -DWITH_PIC=1
41   -DENABLE_DTRACE=0
42   -DWITH_EXTRA_CHARSETS=complex
43   -DWITH_EMBEDDED_SERVER=0
44   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
45   -DWITHOUT_DAEMON_EXAMPLE=1
46   -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"
47   -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"
48   -DCMAKE_INSTALL_RPATH=${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
49 environment =
50   CMAKE_PROGRAM_PATH=${cmake:location}/bin
51   CMAKE_INCLUDE_PATH=${libaio:location}/include:${libxml2:location}/include:${ncurses:location}/include:${openssl:location}/include:${readline5:location}/include:${zlib:location}/include
52   CMAKE_LIBRARY_PATH=${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
53   LDFLAGS=-L${libaio:location}/lib -L${zlib:location}/lib
54
55 [mroonga-mariadb]
56 # mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
57 # http://mroonga.github.com/
58 recipe = slapos.recipe.cmmi
59 url = http://packages.groonga.org/source/mroonga/mroonga-4.01.tar.gz
60 md5sum = 7081aed69e715fb4b0b8f65b0d8d99f1
61 patch-options = -p1
62 patches =
63   ${:_profile_base_location_}/mroonga-4.01-mariadb-10.0.10.patch#f229aca89b6223c43add5f2bd5f5d359
64 configure-options =
65   --with-mysql-source=${mariadb:location}__compile__/mariadb-${mariadb:version}
66   --with-mysql-config=${mariadb:location}/bin/mysql_config
67   --disable-static
68   --disable-document
69 depends =
70   ${mariadb:version}
71   ${mariadb:revision}
72   ${groonga-normalizer-mysql:version}
73 environment =
74   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
75   CPPFLAGS=-I${groonga:location}/include/groonga
76   LDFLAGS=-L${groonga:location}/lib
77   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig