1 # $NetBSD: Makefile,v 1.11 2012/10/06 14:11:22 asau Exp $
4 DISTNAME
= tesseract-2.04
7 MASTER_SITES
= http
://tesseract-ocr.googlecode.com
/files
/
8 DISTFILES
+= ${DISTNAME}.
tar.gz
9 .for l in deu eng fra ita nld spa
10 DISTFILES
+= tesseract-2.00.
${l}.
tar.gz
13 MAINTAINER
= pkgsrc-users@NetBSD.org
14 HOMEPAGE
= http
://code.google.com
/p
/tesseract-ocr
/
15 COMMENT
= Commercial quality open source OCR engine
18 INSTALLATION_DIRS
= libexec share
/doc
/tesseract share
/tesseract
25 ${RM} ${WRKSRC}/java
/makefile
28 ${SED} -e
"s,@PREFIX@,${PREFIX}," ${FILESDIR}/tesseract.sh \
29 > ${WRKSRC}/tesseract.sh
32 ${MV} ${DESTDIR}${PREFIX}/bin
/tesseract
${DESTDIR}${PREFIX}/libexec
33 ${INSTALL_SCRIPT} ${WRKSRC}/tesseract.sh
${DESTDIR}${PREFIX}/bin
/tesseract
34 ${INSTALL_DATA} ${WRKSRC}/README
${DESTDIR}${PREFIX}/share
/doc
/tesseract
35 ${INSTALL_DATA} ${WRKSRC}/phototest.tif
${DESTDIR}${PREFIX}/share
/tesseract
36 cd
${WRKDIR}/tessdata
&& ${PAX} -rw
* ${DESTDIR}${PREFIX}/share
/tessdata
37 chmod a-x
${DESTDIR}${PREFIX}/share
/tessdata
/*.
*
39 .
include "../../graphics/tiff/buildlink3.mk"
40 .
include "../../mk/bsd.pkg.mk"