Ticket #29497: Portfile

File Portfile, 1.2 KB (added by jason@…, 13 years ago)

the ocropus portfile

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