mysql-5.1.cfg 2.35 KB
Newer Older
1
[buildout]
2 3 4 5 6 7 8 9 10
extends =
  ../software-profiles/autoconf.cfg
  ../software-profiles/automake.cfg
  ../software-profiles/zlib.cfg
  ../software-profiles/bison.cfg
  ../software-profiles/flex.cfg
  ../software-profiles/libtool.cfg
  ../software-profiles/ncurses.cfg
  ../software-profiles/openssl.cfg
11
  ../software-profiles/readline.cfg
12

13 14 15 16 17 18
parts =
    mysql-5.1

[mysql-5.1-sphinx-patch]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/patches/${:filename}
19
md5sum = 6580393ca93ecf564cad0552b91a563e
20 21 22 23 24
filename = mysql-5.1.49-sphinx-1.10.diff
download-only = true

[mysql-hooks-download]
recipe = hexagonit.recipe.download
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
25
url = http://www.nexedi.org/static/buildout-hooks/mysql-tritonn-hooks.py-r40113
26
filename = mysql-tritonn-hooks.py
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
27
md5sum = 309d2dedf145122c6151bb46560a7ff3
28 29 30 31
download-only = true

[mysql-5.1]
recipe = hexagonit.recipe.cmmi
32
version = 5.1.52
33
url = http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.1/mysql-${:version}.tar.gz
34
md5sum = 43c11ad3dded693393c4815d24e2b0a5
35 36
pre-configure-hook = ${mysql-hooks-download:location}/${mysql-hooks-download:filename}:pre_configure_hook
post-make-hook = ${mysql-hooks-download:location}/${mysql-hooks-download:filename}:post_make_hook
37 38
# compile directory is required to build mysql plugins.
keep-compile-dir = true
39 40
# configure: how to avoid searching for my.cnf?
#  - like in mysql part in http://svn.zope.org/zodbshootout/trunk/buildout.cfg?view=markup
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
41
# we use embeded yassl instead of openssl to avoid compilation errors on sphinx search engine.
42 43
configure-options =
  --enable-thread-safe-client
44 45 46 47
  --enable-local-infile
  --enable-assembler
  --with-pic
  --with-fast-mutexes
48 49 50
  --with-charset=utf8
  --with-collation=utf8_unicode_ci
  --with-server-suffix=mysql-5.1
51
  --without-readline
52
  --with-ssl
53 54
make-options =
  LIBTOOL=libtool
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
55 56
aclocal-options =
  -I ${libtool:location}/share/aclocal -I config/ac-macros
57 58 59 60

patch-options = -p1
patches =
  ${mysql-5.1-sphinx-patch:location}/${mysql-5.1-sphinx-patch:filename}
61
environment =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
62
  PATH =${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin:%(PATH)s
63 64 65
  CFLAGS =-I${ncurses:location}/include -I${readline:location}/include
  CXXFLAGS =-I${ncurses:location}/include -I${readline:location}/include
  LDFLAGS =-Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${readline:location}/lib