1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ocropus |
---|
6 | categories textproc |
---|
7 | maintainers nomaintainer |
---|
8 | platforms darwin |
---|
9 | description The OCRopus open source document analysis and OCR system |
---|
10 | long_description \ |
---|
11 | OCRopus is a state-of-the-art document analysis and OCR system, \ |
---|
12 | featuring pluggable layout analysis, pluggable character recognition, \ |
---|
13 | statistical natural language modeling, and multi-lingual capabilities. |
---|
14 | |
---|
15 | fetch.type hg |
---|
16 | hg.url https://ocropus.googlecode.com/hg/ |
---|
17 | hg.tag 62bdc7b8be62 |
---|
18 | |
---|
19 | version 0.4-${hg.tag} |
---|
20 | |
---|
21 | homepage http://code.google.com/p/ocropus/ |
---|
22 | master_sites ${hg.url} |
---|
23 | |
---|
24 | depends_build port:scons |
---|
25 | |
---|
26 | depends_lib port:iulib \ |
---|
27 | port:sqlite3 \ |
---|
28 | port:giflib |
---|
29 | |
---|
30 | patchfiles patch-SConstruct.diff |
---|
31 | |
---|
32 | post-patch { |
---|
33 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct |
---|
34 | } |
---|
35 | |
---|
36 | use_configure no |
---|
37 | |
---|
38 | build.cmd scons |
---|
39 | build.target |
---|
40 | # you can remove the build.args test=yes, but it nice to know they work |
---|
41 | build.args prefix=${prefix} iulib=${prefix} omp=no |
---|
42 | |
---|
43 | destroot.cmd scons |
---|
44 | destroot.args ${build.args} |
---|
45 | destroot.destdir destdir=${destroot} |
---|
46 | |
---|