Portfile

# $Id: Portfile 20420 2006-11-03 02:16:34Z jberry@macports.org $

PortSystem 1.0

name gocr
version 0.40
categories graphics
platforms darwin
maintainers nomaintainer@macports.org
description Optical Character Recognition, converts images back to text
long_description GOCR is an OCR (Optical Character Recognition) program. It \
converts scanned images of text back to text files.

homepage http://jocr.sourceforge.net/
master_sites sourceforge:jocr
checksums md5 13cc0d008747f5bb56d8b17be9b61859

depends_build lib:libnetpbm:netpbm

configure.args --mandir=/share/man

destroot.destdir DESTDIR=${destroot}${prefix}

post-destroot {
cd ${worksrcpath}
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 README REMARK.txt AUTHORS CREDITS HISTORY BUGS TODO ${destroot}${prefix}/share/doc/${name}

file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

platform darwin 8 {
configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}