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