buildout.cfg 2.9 KB
Newer Older
1 2
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
3 4 5 6 7
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
  ../zlib/buildout.cfg
  ../bison/buildout.cfg
  ../flex/buildout.cfg
8
  ../groonga/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
9 10
  ../libtool/buildout.cfg
  ../ncurses/buildout.cfg
11
  ../pkgconfig/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
12
  ../readline/buildout.cfg
13 14 15 16 17 18

parts =
    mysql-5.1

[mysql-5.1-sphinx-patch]
recipe = hexagonit.recipe.download
19
url = ${:_profile_base_location_}/${:filename}
20 21
md5sum = eefcd08c400c58d3e89542ab482a8429
filename = mysql-5.1-sphinx-2.0.1-beta.diff
22 23
download-only = true

24 25 26 27 28 29 30
[mysql-5.1-no_test-patch]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = 22b0ef8baec5efc182e10d233c6f14ca
filename = mysql_create_system_tables__no_test.patch
download-only = true

31 32
[mysql-5.1]
recipe = hexagonit.recipe.cmmi
33
version = 5.1.58
34
url = http://mysql.he.net/Downloads/MySQL-5.1/mysql-${:version}.tar.gz
35
md5sum = ae5aef506088e521e4b1cc4f668e96d2
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# compile directory is required to build mysql plugins.
keep-compile-dir = true
# configure: how to avoid searching for my.cnf?
#  - like in mysql part in http://svn.zope.org/zodbshootout/trunk/buildout.cfg?view=markup
configure-command =
  libtoolize -c -f
  aclocal -I ${libtool:location}/share/aclocal -I config/ac-macros
  autoheader
  automake -c -a -f
  autoconf
  touch sql/sql_yacc.yy
  ./configure
# we use embeded yassl instead of openssl to avoid compilation errors on sphinx search engine.
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
51
  --disable-static
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
  --enable-thread-safe-client
  --enable-local-infile
  --enable-assembler
  --with-pic
  --with-fast-mutexes
  --with-charset=utf8
  --with-collation=utf8_unicode_ci
  --with-server-suffix=mysql-5.1
  --without-readline
  --with-ssl
  --with-zlib-dir=${zlib:location}

make-options =
  LIBTOOL=libtool

67
patch-options = -p0
68 69
patches =
  ${mysql-5.1-sphinx-patch:location}/${mysql-5.1-sphinx-patch:filename}
70
  ${mysql-5.1-no_test-patch:location}/${mysql-5.1-no_test-patch:filename}
71 72 73
environment =
  PATH =${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin:%(PATH)s
  CPPFLAGS =-I${ncurses:location}/include -I${readline:location}/include
74
  LDFLAGS =-L${readline:location}/lib -L${ncurses:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${readline:location}/lib
75 76 77

[groonga-storage-engine-mysql-5.1]
recipe = hexagonit.recipe.cmmi
78 79
url = http://github.com/downloads/mroonga/mroonga/groonga-storage-engine-1.0.0.tar.gz
md5sum = 289b8b7919e790599ea79b6fe9270e04
80 81 82 83 84 85 86 87
configure-options =
  --with-mysql-source=${mysql-5.1:location}__compile__/mysql-${mysql-5.1:version}
  --with-mysql-config=${mysql-5.1:location}/bin/mysql_config
environment =
  PATH=${groonga:location}/bin:${pkgconfig:location}/bin:%(PATH)s
  CPPFLAGS=-I${groonga:location}/include/groonga
  LDFLAGS=-L${groonga:location}/lib
  PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig