blob: 2528accfd84187433b448822e8047506591217ba (
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.2 2007/07/28 01:02:14 wiz Exp $
#
DISTNAME= tesseract-2.00
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"
|