mysql-5.1.cfg 2.13 KB
Newer Older
1
[buildout]
2 3 4 5 6 7 8 9
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
10
  ../software-profiles/readline.cfg
11

12 13 14 15 16 17
parts =
    mysql-5.1

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

[mysql-5.1]
recipe = hexagonit.recipe.cmmi
24 25 26
version = 5.1.53
url = http://mysql.he.net/Downloads/MySQL-5.1/mysql-${:version}.tar.gz
md5sum = e5e7c5b0b5c382489e6a66778703bc46
27 28
# compile directory is required to build mysql plugins.
keep-compile-dir = true
29 30
# configure: how to avoid searching for my.cnf?
#  - like in mysql part in http://svn.zope.org/zodbshootout/trunk/buildout.cfg?view=markup
31 32 33 34 35 36 37 38
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
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
39
# we use embeded yassl instead of openssl to avoid compilation errors on sphinx search engine.
40
configure-options =
41
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
42
  --enable-thread-safe-client
43 44 45 46
  --enable-local-infile
  --enable-assembler
  --with-pic
  --with-fast-mutexes
47 48 49
  --with-charset=utf8
  --with-collation=utf8_unicode_ci
  --with-server-suffix=mysql-5.1
50
  --without-readline
51
  --with-ssl
52 53
  --with-zlib-dir=${zlib:location}

54 55
make-options =
  LIBTOOL=libtool
56 57 58 59

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