summaryrefslogtreecommitdiff
path: root/graphics/tesseract/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-05-18 06:39:27 +0000
committerwiz <wiz@pkgsrc.org>2007-05-18 06:39:27 +0000
commit165f5f9cd5b10594e99432e011e41b841eb0ca7f (patch)
treea705c8f6b7adc55c4b7c0be896b56cd6c86a9c90 /graphics/tesseract/Makefile
parent06c962c6956b0965aa1ed667d76eb084b7819a4e (diff)
downloadpkgsrc-165f5f9cd5b10594e99432e011e41b841eb0ca7f.tar.gz
Initial import of tesseract-1.04b from pkgsrc-wip (packaged by heinz@
and myself): This code is a raw OCR engine. It has NO PAGE LAYOUT ANALYSIS, NO OUTPUT FORMATTING, and NO UI. It can only process an image of a single column and create text from it. It can detect fixed pitch vs proportional text. Having said that, in 1995, this engine was in the top 3 in terms of character accuracy, and it compiles and runs on both Linux and Windows. Another current limitation is that it only recognizes English and its character set is only US-ASCII. Training code IS included in the open source release however, and will be included in a future release.
Diffstat (limited to 'graphics/tesseract/Makefile')
-rw-r--r--graphics/tesseract/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/tesseract/Makefile b/graphics/tesseract/Makefile
new file mode 100644
index 00000000000..3102c7a1479
--- /dev/null
+++ b/graphics/tesseract/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/18 06:39:27 wiz Exp $
+#
+
+DISTNAME= tesseract-1.04b
+CATEGORIES= graphics
+MASTER_SITES= http://tesseract-ocr.googlecode.com/files/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://code.google.com/p/tesseract-ocr/
+COMMENT= Commercial quality open source OCR engine
+
+PKG_DESTDIR_SUPPORT=user-destdir
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+WRKSRC= ${WRKDIR}/tesseract-1.04
+
+post-build:
+ ${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/tesseract.sh \
+ > ${WRKSRC}/tesseract.sh
+
+post-install:
+ ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/libexec
+ ${MV} ${DESTDIR}${PREFIX}/bin/tesseract ${DESTDIR}${PREFIX}/libexec
+ ${INSTALL_SCRIPT} ${WRKSRC}/tesseract.sh ${DESTDIR}${PREFIX}/bin/tesseract
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/tesseract
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/tesseract
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/tesseract
+ ${INSTALL_DATA} ${WRKSRC}/phototest.tif ${DESTDIR}${PREFIX}/share/tesseract
+
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"