mysql-tritonn-5.0.cfg 3.27 KB
Newer Older
Łukasz Nowak's avatar
Łukasz Nowak committed
1 2
# This is software part of buildout for mysql with senna
# Originally made by Leonardo Rochael Almeida <leorochael@gmail.com> (thanks!)
3 4
# Original place: https://svn.erp5.org/repos/public/experimental/mysqlsenna.buildout/

5
[buildout]
6 7 8
extends =
  ../software-profiles/autoconf.cfg
  ../software-profiles/automake.cfg
9
  ../software-profiles/zlib.cfg
10 11 12 13 14
  ../software-profiles/bison.cfg
  ../software-profiles/flex.cfg
  ../software-profiles/libtool.cfg
  ../software-profiles/ncurses.cfg
  ../software-profiles/openssl.cfg
15
  ../software-profiles/readline.cfg
16

17 18 19 20 21 22
parts =
    mysql-tritonn-5.0

[senna]
recipe = hexagonit.recipe.cmmi
url = http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fsenna%2F33763%2Fsenna-1.1.4.tar.gz
Łukasz Nowak's avatar
Łukasz Nowak committed
23
md5sum = 1d896f46ef1def47ebe0d72c7eb21a60
24 25 26
configure-options =
  --without-mecab
  --enable-nfkc=no
27

28
[mysql-5.0-tritonn-patch]
29
recipe = hexagonit.recipe.download
30
url = http://dl.sourceforge.jp/tritonn/44472/${:filename}
Łukasz Nowak's avatar
Łukasz Nowak committed
31
md5sum = 257abe9c4afdc9b08033687fd486a595
32
filename = tritonn-1.0.12-mysql-5.0.87.diff
33 34
download-only = true

35 36 37
[mysql-5.0-sphinx-patch]
recipe = hexagonit.recipe.download
url = http://www.nexedi.org/static/patches/${:filename}
38
md5sum = e7ff31f4853f4391344a6a9a520fc98d
39 40 41
filename = mysql-5.0.87-sphinx-1.10.diff
download-only = true

42 43
[mysql-tritonn-hooks-download]
recipe = hexagonit.recipe.download
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
44
url = http://www.nexedi.org/static/buildout-hooks/mysql-tritonn-hooks.py-r40113
45
filename = mysql-tritonn-hooks.py
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
46
md5sum = 309d2dedf145122c6151bb46560a7ff3
47 48
download-only = true

49 50
[mysql-tritonn-5.0]
recipe = hexagonit.recipe.cmmi
51
url = http://www.nexedi.org/static/tarballs/mysql/mysql-5.0.87.tar.gz
Łukasz Nowak's avatar
Łukasz Nowak committed
52
md5sum = 65e6229cc98b6a8d4c5206d7fe16c7be
53 54
pre-configure-hook = ${mysql-tritonn-hooks-download:location}/${mysql-tritonn-hooks-download:filename}:pre_configure_hook
post-make-hook = ${mysql-tritonn-hooks-download:location}/${mysql-tritonn-hooks-download:filename}:post_make_hook
Łukasz Nowak's avatar
Łukasz Nowak committed
55 56
# configure: how to avoid searching for my.cnf?
#  - like in mysql part in http://svn.zope.org/zodbshootout/trunk/buildout.cfg?view=markup
57 58
configure-options =
  --with-senna
59
  --with-openssl=${openssl:location}
60 61 62 63 64
  --without-mecab
  --enable-thread-safe-client
  --with-charset=utf8
  --with-collation=utf8_unicode_ci
  --with-server-suffix=mysql-tritonn-5.0
65
  --with-mysqlmanager
66
  --enable-assembler
67
  --without-readline
68
  --with-sphinx-storage-engine
69
  --with-named-curses-libs=${ncurses:location}/lib/libncurses.so
70
  --with-zlib-dir=${zlib:location}
71 72

make-options =
73
  LIBTOOL=libtool
74
  LN_S='ln -s'
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
75 76
aclocal-options =
  -I ${libtool:location}/share/aclocal -I config/ac-macros
77

78
patch-options = -p1
79 80 81
patches =
  ${mysql-5.0-tritonn-patch:location}/${mysql-5.0-tritonn-patch:filename}
  ${mysql-5.0-sphinx-patch:location}/${mysql-5.0-sphinx-patch:filename}
82
environment =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
83
    PATH =${senna:location}/bin:${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin:%(PATH)s
84 85 86
    CFLAGS =-I${senna:location}/include/senna -I${ncurses:location}/include -I${readline:location}/include
    CXXFLAGS =-I${senna:location}/include/senna -I${ncurses:location}/include -I${readline:location}/include
    LDFLAGS =-L${senna:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${readline:location}/lib