buildout.cfg 3.36 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
Łukasz Nowak's avatar
Łukasz Nowak committed
7
  ../zlib/buildout.cfg
8
  ../groonga/buildout.cfg
9
  ../libaio/buildout.cfg
10
  ../libevent/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
11
  ../ncurses/buildout.cfg
12
  ../openssl/buildout.cfg
13
  ../pkgconfig/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
14
  ../readline/buildout.cfg
15
  ../libxml2/buildout.cfg
16 17 18 19

parts =
  mariadb

20
[mariadb-10.0.8-no_test-patch]
21 22
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
23 24
md5sum = a176d491cf45fccd53ee397c70393bc4
filename = mariadb_10.0.8_create_system_tables__no_test.patch
25 26
download-only = true

27
[mariadb]
28
recipe = slapos.recipe.cmmi
29
version = 10.0.8
30
revision = 1
31
url = http://downloads.askmonty.org/f/mariadb-${:version}/kvm-tarbake-jaunty-x86/mariadb-${:version}.tar.gz/from/http://ftp.osuosl.org/pub/mariadb
32
md5sum = 2b925d0beae8101f1f3f98102da91bf7
33 34 35 36
# compile directory is required to build mysql plugins.
keep-compile-dir = true
patch-options = -p0
patches =
37
  ${mariadb-10.0.8-no_test-patch:location}/${mariadb-10.0.8-no_test-patch:filename}
38 39 40 41 42 43 44 45 46 47
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
48
  -DENABLE_DTRACE=0
49 50 51 52
  -DWITH_EXTRA_CHARSETS=complex
  -DWITH_EMBEDDED_SERVER=0
  -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
  -DWITHOUT_DAEMON_EXAMPLE=1
53 54 55
  -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"
  -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"
  -DCMAKE_INSTALL_RPATH=${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
56 57
environment =
  CMAKE_PROGRAM_PATH=${cmake:location}/bin
58 59
  CMAKE_INCLUDE_PATH=${libaio:location}/include:${libxml2:location}/include:${ncurses:location}/include:${openssl:location}/include:${readline5:location}/include:${zlib:location}/include
  CMAKE_LIBRARY_PATH=${libaio:location}/lib:${libxml2:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${readline5:location}/lib:${zlib:location}/lib
60
  LDFLAGS=-L${libaio:location}/lib -L${zlib:location}/lib
61

62
[mroonga-mariadb]
63 64
# mroonga - a storage engine for MySQL. It provides fast fulltext search feature to all MySQL users.
# http://mroonga.github.com/
65
recipe = slapos.recipe.cmmi
66 67
url = http://packages.groonga.org/source/mroonga/mroonga-4.00.tar.gz
md5sum = f54c44c1ab0a98bea9f6ea6c4a8b2787
68
configure-options =
69 70
  --with-mysql-source=${mariadb:location}__compile__/mariadb-${mariadb:version}
  --with-mysql-config=${mariadb:location}/bin/mysql_config
71 72
  --disable-static
  --disable-document
73
depends =
74
  ${mariadb:version}
75
  ${mariadb:revision}
76
  ${groonga-normalizer-mysql:version}
77 78
environment =
  PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
79
  CPPFLAGS=-I${groonga:location}/include/groonga
80
  LDFLAGS=-L${groonga:location}/lib
81
  PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig