81ddca477f
The Tesseract OCR engine 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 it is probably one of the most accurate open source OCR engines available. The source code will read a binary, grey or color image and output text. A tiff reader is built in that will read uncompressed TIFF images, or libtiff can be added to read compressed images. reworked from scratch from an original submission by jrrs at ice-nine dot org a while ago on ports@; he's been non-responsive so far so I'm taking MAINTAINERship.
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2008/09/17 10:17:27 ajacoutot Exp $
|
|
|
|
COMMENT-main= OCR Engine developed at HP Labs.
|
|
COMMENT-de= German language data for tesseract
|
|
COMMENT-es= Spanish language data for tesseract
|
|
COMMENT-fr= French language data for tesseract
|
|
COMMENT-it= Italian language data for tesseract
|
|
COMMENT-nl= Dutch language data for tesseract
|
|
COMMENT-pt= Portuguese (Brazilian) language data for tesseract
|
|
|
|
DISTNAME= tesseract-2.03
|
|
CATEGORIES= graphics textproc
|
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
PKGNAME-de= tesseract-de-2.00
|
|
PKGNAME-es= tesseract-es-2.00
|
|
PKGNAME-fr= tesseract-fr-2.00
|
|
PKGNAME-it= tesseract-it-2.00
|
|
PKGNAME-nl= tesseract-nl-2.00
|
|
PKGNAME-pt= tesseract-pt-2.01
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
tesseract-2.00.deu.tar.gz \
|
|
tesseract-2.00.eng.tar.gz \
|
|
tesseract-2.00.fra.tar.gz \
|
|
tesseract-2.00.ita.tar.gz \
|
|
tesseract-2.00.nld.tar.gz \
|
|
tesseract-2.01.por.tar.gz \
|
|
tesseract-2.00.spa.tar.gz
|
|
|
|
HOMEPAGE= http://code.google.com/p/tesseract-ocr/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# Apache License 2.0
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MULTI_PACKAGES= -main -de -es -fr -it -nl -pt
|
|
|
|
WANTLIB-main= c jpeg m pthread stdc++ z
|
|
|
|
LIB_DEPENDS-main= tiff::graphics/tiff \
|
|
png.>=7::graphics/png
|
|
|
|
RUN_DEPENDS-de= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-es= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-fr= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-it= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-nl= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-pt= ::${BASE_PKGPATH}
|
|
|
|
PKG_ARCH-de= *
|
|
PKG_ARCH-es= *
|
|
PKG_ARCH-fr= *
|
|
PKG_ARCH-it= *
|
|
PKG_ARCH-nl= *
|
|
PKG_ARCH-pt= *
|
|
|
|
MASTER_SITES= http://tesseract-ocr.googlecode.com/files/
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
post-install:
|
|
cp -R ${WRKDIR}/tessdata ${PREFIX}/share
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tesseract
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tesseract
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tesseract
|
|
${INSTALL_DATA} ${WRKSRC}/{eurotext.tif,phototest.tif} \
|
|
${PREFIX}/share/examples/tesseract
|
|
|
|
.include <bsd.port.mk>
|