blob: cc2ad210277c381b88bd37f03b1963f0db17536a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $NetBSD: Makefile,v 1.3 2007/11/29 16:42:08 wiz Exp $
#
DISTNAME= tesseract-2.01
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++
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"
|