buildout.cfg 1.86 KB
Newer Older
1 2
[buildout]
extends =
3
  ../autoconf/buildout.cfg
4
  ../automake/buildout.cfg
5 6
  ../jbigkit/buildout.cfg
  ../leptonica/buildout.cfg
7
  ../libpng/buildout.cfg
8
  ../libtool/buildout.cfg
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
9
  ../patch/buildout.cfg
10
  ../webp/buildout.cfg
11 12 13 14 15

parts =
  tesseract

[tesseract]
16
recipe = slapos.recipe.cmmi
17 18
url = http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz
md5sum = 1ba496e51a42358fb9d3ffe781b2d20a
19 20 21
patch-options =
  -p1
patches =
22 23
  ${:_profile_base_location_}/tesseract-3.00-gcc-4.7-build.patch#ca80db3ec489c547b03f3ee48879c1b1
  ${:_profile_base_location_}/tesseract-3.01-remove-bom.patch#2e691858cb492b7c17d23bf0912b3d24
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
24
pre-configure =
25
  libtoolize -f -c
26
  aclocal -I ${libtool:location}/share/aclocal -I config
27 28
  autoheader -f
  automake -c -a -f
29
  autoconf -Wno-portability
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
30 31 32
configure-options =
  --disable-static
  --datarootdir=${tesseract-eng-traineddata:location}
33 34
# XXX: tesseract seems not easily configurable at runtime about where to find
# its trained data, so we set its datarootdir above to a controlled location
35 36 37

# tesseract has a non-standard way of testing for leptonica, hence the
# LIBLEPT_HEADERSDIR entry below:
38
environment =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
39
  PATH=${autoconf:location}/bin:${automake:location}/bin:${libtool:location}/bin:${m4:location}/bin:${patch:location}/bin:%(PATH)s
40
  ACLOCAL_ARGS=-I${libtool:location}/share/aclocal
41
  LIBLEPT_HEADERSDIR=${leptonica:location}/include
42
  CPPFLAGS=-I${leptonica:location}/include
43
  LDFLAGS =-L${leptonica:location}/lib -Wl,-rpath=${leptonica:location}/lib -L${jbigkit:location}/lib -Wl,-rpath=${jbigkit:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
44 45
make-options =
  LIBTOOL=${libtool:location}/bin/libtool
46 47 48

[tesseract-eng-traineddata]
recipe = hexagonit.recipe.download
49
ignore-existing = true
50 51 52
strip-top-level-dir = true
url = http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
md5sum = 89c139a73e0e7b1225809fc7b226b6c9