SUMMARY="An OCR Engine that was developed at HP and now at Google" DESCRIPTION=" An OCR Engine that was developed at HP Labs between 1985 and 1995... and \ now at Google. Tesseract is probably the most accurate open source OCR engine available. \ Combined with the Leptonica Image Processing Library it can read a wide \ variety of image formats and convert them to text in over 60 languages. \ It was one of the top 3 engines in the 1995 UNLV Accuracy test. Between \ 1995 and 2006 it had little work done on it, but since then it has been \ improved extensively by Google. It is released under the Apache License \ 2.0." HOMEPAGE="http://code.google.com/p/tesseract-ocr" LICENSE="Apache v2" COPYRIGHT="1985-1995 HP labs 2012 Google Inc." SOURCE_URI="https://github.com/tesseract-ocr/tesseract/archive/3.02.02.tar.gz" CHECKSUM_SHA256="1566a78f81570e7dc656e881a0fa688fe1c700d4657041807f2160bf67fbb485" REVISION="1" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" tesseract$secondaryArchSuffix = $portVersion lib:libtesseract$secondaryArchSuffix = $portVersion cmd:ambiguous_words$secondaryArchSuffix = $portVersion cmd:classifier_tester$secondaryArchSuffix = $portVersion cmd:cntraining$secondaryArchSuffix = $portVersion cmd:combine_tessdata$secondaryArchSuffix = $portVersion cmd:dawg2wordlist$secondaryArchSuffix = $portVersion cmd:mftraining$secondaryArchSuffix = $portVersion cmd:shapeclustering$secondaryArchSuffix = $portVersion cmd:tesseract$secondaryArchSuffix = $portVersion cmd:unicharset_extractor$secondaryArchSuffix = $portVersion cmd:wordlist2dawg$secondaryArchSuffix = $portVersion " PROVIDES_devel=" tesseract${secondaryArchSuffix}_devel = $portVersion devel:libtesseract$secondaryArchSuffix = $portVersion " REQUIRES_devel=" tesseract$secondaryArchSuffix == $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:liblept$secondaryArchSuffix lib:libgif$secondaryArchSuffix lib:libjpeg$secondaryArchSuffix lib:libpng$secondaryArchSuffix lib:libwebp$secondaryArchSuffix lib:libz$secondaryArchSuffix" BUILD_REQUIRES=" devel:liblept$secondaryArchSuffix devel:libgif$secondaryArchSuffix devel:libjpeg$secondaryArchSuffix devel:libpng$secondaryArchSuffix devel:libwebp$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" haiku${secondaryArchSuffix}_devel cmd:aclocal cmd:autoconf cmd:awk cmd:find cmd:gcc$secondaryArchSuffix cmd:libtoolize cmd:make " PATCHES="tesseract-3.02.02.patch" PATCH() { sed -i 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.ac } BUILD() { autogen.sh export LIBLEPT_HEADERSDIR=$(finddir B_SYSTEM_HEADERS_DIRECTORY)${secondaryArchSubDir}/leptonica export TESSDATA_PREFIX=$dataDir/tessdata runConfigure configure make } INSTALL() { make install prepareInstalledDevelLibs libtesseract fixPkgconfig # devel package packageEntries devel $developDir } TEST() { make test make check }