Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / tesseract / Makefile
blob3e6d0ab884e7270f21000a4fec2e9260ae0703fc
1 # $NetBSD: Makefile,v 1.11 2012/10/06 14:11:22 asau Exp $
4 DISTNAME= tesseract-2.04
5 PKGREVISION= 4
6 CATEGORIES= graphics
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
11 .endfor
13 MAINTAINER= pkgsrc-users@NetBSD.org
14 HOMEPAGE= http://code.google.com/p/tesseract-ocr/
15 COMMENT= Commercial quality open source OCR engine
16 LICENSE= apache-2.0
18 INSTALLATION_DIRS= libexec share/doc/tesseract share/tesseract
20 GNU_CONFIGURE= yes
21 USE_LANGUAGES= c c++
22 USE_TOOLS+= gmake pax
24 post-extract:
25 ${RM} ${WRKSRC}/java/makefile
27 post-build:
28 ${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/tesseract.sh \
29 > ${WRKSRC}/tesseract.sh
31 post-install:
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"