SUMMARY="An OCR (Optical Character Recognition) reader"
DESCRIPTION="
It converts scanned images of text back to text files. Joerg Schulenburg \
started the program, and now leads a team of developers.
GOCR can be used with different front-ends, which makes it very easy to port \
to different OSes and architectures. It can open many different image \
formats, and its quality have been improving in a daily basis."
HOMEPAGE="http://jocr.sofrceforge.net"
SOURCE_URI="http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-$portVersion.tar.gz"
CHECKSUM_SHA256="bc261244f887419cba6d962ec1ad58eefd77176885093c4a43061e7fd565f5b5"
LICENSE="GNU GPL v2"
COPYRIGHT="2000-2013 Joerg Schulenburg"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

REVISION="1"

PROVIDES="
	$portName = $portVersion
	cmd:gocr
	cmd:gocr.tcl
	"

REQUIRES="
	haiku
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:libtoolize
	cmd:aclocal
	cmd:autoconf
	"

PATCHES="gocr-0.50.patchset"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	runConfigure configure
	make
}

INSTALL()
{
	make install DESTDIR=${DESTDIR}
}
