version up : percona-toolkit 2.2.10.
[slapos.git] / component / mysql-5.5 / buildout.cfg
1 [buildout]
2 extends =
3   ../autoconf/buildout.cfg
4   ../automake/buildout.cfg
5   ../bison/buildout.cfg
6   ../cmake/buildout.cfg
7   ../groonga/buildout.cfg
8   ../libaio/buildout.cfg
9   ../libtool/buildout.cfg
10   ../ncurses/buildout.cfg
11   ../pkgconfig/buildout.cfg
12   ../zlib/buildout.cfg
13
14 parts =
15     mysql-5.5
16
17 [mysql-5.5-sphinx-patch]
18 # this patch comes from sphinx-2.0.1-beta including changes for
19 # MySQL-5.5 in
20 # http://code.google.com/p/sphinxsearch/source/detail?r=2921
21 recipe = hexagonit.recipe.download
22 url = ${:_profile_base_location_}/${:filename}
23 md5sum = 04549822ebfa91b5f84025ff49ef24c2
24 filename = mysql-5.5-sphinx-2.0.1-beta.diff
25 download-only = true
26
27 [mysql-5.5-no_test-patch]
28 recipe = hexagonit.recipe.download
29 url = ${:_profile_base_location_}/${:filename}
30 md5sum = bb7ee34b9a98da1f913566c63ffbc6f5
31 filename = mysql_create_system_tables__no_test.patch
32 download-only = true
33
34 [mysql-5.5]
35 recipe = slapos.recipe.cmmi
36 version = 5.5.16
37 url = http://mysql.he.net/Downloads/MySQL-5.5/mysql-${:version}.tar.gz
38 md5sum = 462ab3752dd666ec06ca32f92673b59e
39 # compile directory is required to build mysql plugins.
40 keep-compile-dir = true
41 patch-options = -p0
42 patches =
43   ${mysql-5.5-sphinx-patch:location}/${mysql-5.5-sphinx-patch:filename}
44   ${mysql-5.5-no_test-patch:location}/${mysql-5.5-no_test-patch:filename}
45 configure-command = ${cmake:location}/bin/cmake
46 # we use embeded yassl instead of openssl to avoid compilation errors on sphinx search engine.
47 configure-options =
48   -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
49   -DBUILD_CONFIG=mysql_release
50   -DDEFAULT_CHARSET=utf8
51   -DDEFAULT_COLLATION=utf8_unicode_ci
52   -DWITH_SSL=bundled
53   -DWITH_ZLIB=system
54   -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
55   -DWITHOUT_DAEMON_EXAMPLE=1
56   -DWITH_SPHINX_STORAGE_ENGINE=1
57   -DCMAKE_C_FLAGS="-I${libaio:location}/include -I${ncurses:location}/include -I${zlib:location}/include"
58   -DCMAKE_INSTALL_RPATH=${libaio:location}/lib:${ncurses:location}/lib:${zlib:location}/lib
59 environment =
60   CMAKE_PROGRAM_PATH=${autoconf:location}/bin:${automake:location}/bin:${cmake:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin
61   CMAKE_INCLUDE_PATH=${libaio:location}/include:${ncurses:location}/include:${zlib:location}/include
62   CMAKE_LIBRARY_PATH=${libaio:location}/lib:${ncurses:location}/lib:${zlib:location}/lib
63   LDFLAGS=-L${libaio:location}/lib
64
65 [groonga-storage-engine-mysql-5.5]
66 recipe = slapos.recipe.cmmi
67 url = http://github.com/downloads/mroonga/mroonga/groonga-storage-engine-1.0.0.tar.gz
68 md5sum = 289b8b7919e790599ea79b6fe9270e04
69 configure-options =
70   --with-mysql-source=${mysql-5.5:location}__compile__/mysql-${mysql-5.5:version}
71   --with-mysql-config=${mysql-5.5:location}/bin/mysql_config
72 environment =
73   PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
74   CPPFLAGS=-I${groonga:location}/include/groonga
75   LDFLAGS=-L${groonga:location}/lib
76   PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig