version up : groonga-2.0.3 and mroonga-2.03.
[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
16 parts =
17   mariadb
18
19 [mariadb-5.5-no_test-patch]
20 recipe = hexagonit.recipe.download
21 url = ${:_profile_base_location_}/${:filename}
22 md5sum = 14e6d713c16298a10f40d29f2b799aca
23 filename = mariadb_5.5_create_system_tables__no_test.patch
24 download-only = true
25
26 [mariadb]
27 recipe = hexagonit.recipe.cmmi
28 version = 5.5.23
29 revision = 1
30 url = http://downloads.askmonty.org/f/mariadb-${:version}/kvm-tarbake-jaunty-x86/mariadb-${:version}.tar.gz/from/http://ftp.osuosl.org/pub/mariadb
31 md5sum = 7074fa091b3c1489f45a5ddf12cd5e6f
32 # compile directory is required to build mysql plugins.
33 keep-compile-dir = true
34 patch-options = -p0
35 patches =
36   ${mariadb-5.5-no_test-patch:location}/${mariadb-5.5-no_test-patch:filename}
37 configure-command = ${cmake:location}/bin/cmake
38 configure-options =
39   -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
40   -DBUILD_CONFIG=mysql_release
41   -DDEFAULT_CHARSET=utf8
42   -DDEFAULT_COLLATION=utf8_unicode_ci
43   -DWITH_SSL=system
44   -DWITH_ZLIB=system
45   -DWITH_READLINE=0
46   -DWITH_PIC=1
47   -DWITH_EXTRA_CHARSETS=complex
48   -DWITH_EMBEDDED_SERVER=0
49   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
50   -DWITHOUT_DAEMON_EXAMPLE=1
51   -DCMAKE_C_FLAGS="-I${libaio:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${readline5:location}/include -I${zlib:location}/include"
52   -DCMAKE_CXX_FLAGS="-I${libaio:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${readline5:location}/include -I${zlib:location}/include"
53   -DCMAKE_INSTALL_RPATH=${libaio:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
54 environment =
55   CMAKE_PROGRAM_PATH=${cmake:location}/bin
56   CMAKE_INCLUDE_PATH=${libaio:location}/include:${ncurses:location}/include:${openssl:location}/include:${readline5:location}/include:${zlib:location}/include
57   CMAKE_LIBRARY_PATH=${libaio:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
58   LDFLAGS=-L${libaio:location}/lib
59
60 [mroonga-mariadb]
61 recipe = hexagonit.recipe.cmmi
62 url = https://github.com/downloads/mroonga/mroonga/mroonga-2.03.tar.gz
63 md5sum = 0f7c7035a0266fee8fc6d021145804b5
64 configure-options =
65   --with-mysql-source=${mariadb:location}__compile__/mariadb-${mariadb:version}
66   --with-mysql-config=${mariadb:location}/bin/mysql_config
67 depends =
68   ${mariadb:version}
69   ${mariadb:revision}
70 environment =
71   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
72   CPPFLAGS=-I${groonga:location}/include/groonga
73   LDFLAGS=-L${groonga:location}/lib
74   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig
75   CXXFLAGS=-Wno-deprecated
76 # CXXFLAGS workaround: avoid depracation warning in order to compile on gcc 4.7+