2010-01-18 10:58:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.9 2010/01/18 09:59:09 wiz Exp $
|
2007-05-18 08:39:27 +02:00
|
|
|
#
|
|
|
|
|
Update to 2.04. Set LICENSE.
June 30 2009 - V2.04
Integrated bug fixes and patches and misc changes for portability.
Integrated a patch to remove some of the "access" macros.
Removed dependence on lua from the viewer, speeding it up
dramatically.
Fixed the viewer so it compiles and runs properly!
Specifically fixing issues: 1, 63, 67, 71, 76, 81, 82, 106, 111,
112, 128, 129, 130, 133, 135, 142, 143, 145, 147, 153, 154, 160,
165, 170, 175, 177, 187, 192, 195, 199, 201, 205, 209, 108, 169
2009-07-22 22:57:47 +02:00
|
|
|
DISTNAME= tesseract-2.04
|
2010-01-18 10:58:37 +01:00
|
|
|
PKGREVISION= 2
|
2007-05-18 08:39:27 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://tesseract-ocr.googlecode.com/files/
|
2009-07-21 18:00:19 +02:00
|
|
|
DISTFILES+= ${DISTNAME}.tar.gz
|
|
|
|
.for l in deu eng fra ita nld spa
|
Update to 2.04. Set LICENSE.
June 30 2009 - V2.04
Integrated bug fixes and patches and misc changes for portability.
Integrated a patch to remove some of the "access" macros.
Removed dependence on lua from the viewer, speeding it up
dramatically.
Fixed the viewer so it compiles and runs properly!
Specifically fixing issues: 1, 63, 67, 71, 76, 81, 82, 106, 111,
112, 128, 129, 130, 133, 135, 142, 143, 145, 147, 153, 154, 160,
165, 170, 175, 177, 187, 192, 195, 199, 201, 205, 209, 108, 169
2009-07-22 22:57:47 +02:00
|
|
|
DISTFILES+= tesseract-2.00.${l}.tar.gz
|
2009-07-21 18:00:19 +02:00
|
|
|
.endfor
|
2007-05-18 08:39:27 +02:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://code.google.com/p/tesseract-ocr/
|
|
|
|
COMMENT= Commercial quality open source OCR engine
|
Update to 2.04. Set LICENSE.
June 30 2009 - V2.04
Integrated bug fixes and patches and misc changes for portability.
Integrated a patch to remove some of the "access" macros.
Removed dependence on lua from the viewer, speeding it up
dramatically.
Fixed the viewer so it compiles and runs properly!
Specifically fixing issues: 1, 63, 67, 71, 76, 81, 82, 106, 111,
112, 128, 129, 130, 133, 135, 142, 143, 145, 147, 153, 154, 160,
165, 170, 175, 177, 187, 192, 195, 199, 201, 205, 209, 108, 169
2009-07-22 22:57:47 +02:00
|
|
|
LICENSE= apache-2.0
|
2007-05-18 08:39:27 +02:00
|
|
|
|
Update to 2.04. Set LICENSE.
June 30 2009 - V2.04
Integrated bug fixes and patches and misc changes for portability.
Integrated a patch to remove some of the "access" macros.
Removed dependence on lua from the viewer, speeding it up
dramatically.
Fixed the viewer so it compiles and runs properly!
Specifically fixing issues: 1, 63, 67, 71, 76, 81, 82, 106, 111,
112, 128, 129, 130, 133, 135, 142, 143, 145, 147, 153, 154, 160,
165, 170, 175, 177, 187, 192, 195, 199, 201, 205, 209, 108, 169
2009-07-22 22:57:47 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
INSTALLATION_DIRS= libexec share/doc/tesseract share/tesseract
|
2007-05-18 08:39:27 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LANGUAGES= c c++
|
2009-07-21 18:00:19 +02:00
|
|
|
USE_TOOLS+= gmake pax
|
2007-05-18 08:39:27 +02:00
|
|
|
|
2008-10-30 23:12:59 +01:00
|
|
|
post-extract:
|
|
|
|
${RM} ${WRKSRC}/java/makefile
|
|
|
|
|
2007-05-18 08:39:27 +02:00
|
|
|
post-build:
|
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/tesseract.sh \
|
|
|
|
> ${WRKSRC}/tesseract.sh
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MV} ${DESTDIR}${PREFIX}/bin/tesseract ${DESTDIR}${PREFIX}/libexec
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tesseract.sh ${DESTDIR}${PREFIX}/bin/tesseract
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/tesseract
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/phototest.tif ${DESTDIR}${PREFIX}/share/tesseract
|
2009-07-21 18:00:19 +02:00
|
|
|
cd ${WRKDIR}/tessdata && ${PAX} -rw * ${DESTDIR}${PREFIX}/share/tessdata
|
Update to 2.04. Set LICENSE.
June 30 2009 - V2.04
Integrated bug fixes and patches and misc changes for portability.
Integrated a patch to remove some of the "access" macros.
Removed dependence on lua from the viewer, speeding it up
dramatically.
Fixed the viewer so it compiles and runs properly!
Specifically fixing issues: 1, 63, 67, 71, 76, 81, 82, 106, 111,
112, 128, 129, 130, 133, 135, 142, 143, 145, 147, 153, 154, 160,
165, 170, 175, 177, 187, 192, 195, 199, 201, 205, 209, 108, 169
2009-07-22 22:57:47 +02:00
|
|
|
chmod a-x ${DESTDIR}${PREFIX}/share/tessdata/*.*
|
2007-05-18 08:39:27 +02:00
|
|
|
|
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|