cleanup.
[slapos.git] / component / tesseract / buildout.cfg
1 [buildout]
2 extends =
3   ../autoconf/buildout.cfg
4   ../automake/buildout.cfg
5   ../jbigkit/buildout.cfg
6   ../leptonica/buildout.cfg
7   ../libpng/buildout.cfg
8   ../libtool/buildout.cfg
9   ../webp/buildout.cfg
10
11 parts =
12   tesseract
13
14 [tesseract]
15 recipe = slapos.recipe.cmmi
16 url = http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz
17 md5sum = 1ba496e51a42358fb9d3ffe781b2d20a
18 patch-options =
19   -p1
20 patches =
21   ${:_profile_base_location_}/tesseract-3.00-gcc-4.7-build.patch#ca80db3ec489c547b03f3ee48879c1b1
22   ${:_profile_base_location_}/tesseract-3.01-remove-bom.patch#2e691858cb492b7c17d23bf0912b3d24
23 pre-configure =
24   libtoolize -f -c
25   aclocal -I ${libtool:location}/share/aclocal -I config
26   autoheader -f
27   automake -c -a -f
28   autoconf -Wno-portability
29 configure-options =
30   --disable-static
31   --datarootdir=${tesseract-eng-traineddata:location}
32 # XXX: tesseract seems not easily configurable at runtime about where to find
33 # its trained data, so we set its datarootdir above to a controlled location
34
35 # tesseract has a non-standard way of testing for leptonica, hence the
36 # LIBLEPT_HEADERSDIR entry below:
37 environment =
38   PATH=${autoconf:location}/bin:${automake:location}/bin:${libtool:location}/bin:${m4:location}/bin:%(PATH)s
39   ACLOCAL_ARGS=-I${libtool:location}/share/aclocal
40   LIBLEPT_HEADERSDIR=${leptonica:location}/include
41   CPPFLAGS=-I${leptonica:location}/include
42   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
43 make-options =
44   LIBTOOL=${libtool:location}/bin/libtool
45
46 [tesseract-eng-traineddata]
47 recipe = hexagonit.recipe.download
48 strip-top-level-dir = true
49 url = http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
50 md5sum = 89c139a73e0e7b1225809fc7b226b6c9