buildout.cfg 3.75 KB
Newer Older
1 2 3 4 5
# MariaDB - a database server that offers drop-in replacement functionality for MySQL.
# http://mariadb.org/

[buildout]
extends =
6
  ../cmake/buildout.cfg
7
  ../groonga/buildout.cfg
8
  ../jemalloc/buildout.cfg
9
  ../libaio/buildout.cfg
10
  ../libxml2/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
11
  ../ncurses/buildout.cfg
12
  ../openssl/buildout.cfg
13
  ../pcre/buildout.cfg
14
  ../pkgconfig/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
15
  ../readline/buildout.cfg
16
  ../zlib/buildout.cfg
17 18 19 20

parts =
  mariadb

21
[mariadb]
22
recipe = slapos.recipe.cmmi
23
version = 10.0.17
24
url = https://downloads.mariadb.org/f/mariadb-${:version}/source/mariadb-${:version}.tar.gz/from/http:/ftp.osuosl.org/pub/mariadb
25
md5sum = 3101d1e79c1b04699cde10780f959625
26 27
patch-options = -p0
patches =
28
  ${:_profile_base_location_}/mariadb_10.0.8_create_system_tables__no_test.patch#a176d491cf45fccd53ee397c70393bc4
29 30 31 32 33 34 35 36 37 38
configure-command = ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_INSTALL_PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
  -DBUILD_CONFIG=mysql_release
  -DDEFAULT_CHARSET=utf8
  -DDEFAULT_COLLATION=utf8_unicode_ci
  -DWITH_SSL=system
  -DWITH_ZLIB=system
  -DWITH_READLINE=0
  -DWITH_PIC=1
39
  -DWITH_PCRE=system
40
  -DENABLE_DTRACE=0
41 42
  -DWITH_EXTRA_CHARSETS=complex
  -DWITH_EMBEDDED_SERVER=0
43
  -DWITH_JEMALLOC=yes
44
  -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
45
  -DWITHOUT_MROONGA_STORAGE_ENGINE=1
46
  -DWITHOUT_DAEMON_EXAMPLE=1
47 48 49
  -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"
  -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"
  -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
50
  -DWITHOUT_TOKUDB=true
51 52
environment =
  CMAKE_PROGRAM_PATH=${cmake:location}/bin
53 54 55
  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
  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
  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

57
[mroonga-mariadb]
58 59
# mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
# http://mroonga.github.com/
60
recipe = slapos.recipe.cmmi
61 62
url = http://packages.groonga.org/source/mroonga/mroonga-5.00.tar.gz
md5sum = c0d49ef2ca60b82cd40eb9a842460f55
63
configure-command = mkdir fake_mariadb_source && ln -s ${mariadb:location}/include/mysql/private fake_mariadb_source/sql && ./configure
64
configure-options =
65 66
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --with-mysql-source=fake_mariadb_source
67
  --with-mysql-config=${mariadb:location}/bin/mysql_config
68 69
  --disable-static
  --disable-document
70 71 72
patch-options = -p1
patches =
  ${:_profile_base_location_}/mroonga_boolean.patch#36645770ae612515b74b90884ecc59fc
73 74
environment =
  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