1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/graphics/tesseract/Makefile
2008-09-07 04:07:05 +00:00

48 lines
1.4 KiB
Makefile

# New ports collection makefile for: tesseract
# Date created: 18 July 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tesseract
DISTVERSION= 2.01
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} CENKES
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${LANGFILES}
MAINTAINER= bf2006a@yahoo.com
COMMENT= Commercial quality open source OCR engine
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm
PROJECTHOST= tesseract-ocr
LANGS= deu eng fra ita nld spa
LANGVER= 2.00
LANGFILES= ${LANGS:S|^|${PORTNAME}-${LANGVER}.|:S|$|${EXTRACT_SUFX}|}
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBTIFF_CFLAGS="-I${LOCALBASE}/include"\
LIBTIFF_LIBS="-L${LOCALBASE}/lib -ltiff"
PORTDOCS= AUTHORS ChangeLog NEWS README ReleaseNotes
PORTEXAMPLES= eurotext.tif phototest.tif
PORT_VERBS= cntraining mftraining tessdata unicharset_extractor \
wordlist2dawg ${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/X11/xterm|${LOCALBASE}/bin/xterm|'\
${WRKSRC}/ccutil/debugwin.cpp
post-install:
@cd ${WRKDIR}/tessdata/&&${COPYTREE_SHARE} . ${PREFIX}/share/tessdata/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.ifndef NOPORTEXAMPLES
@${INSTALL} -d ${EXAMPLESDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
.endif
.include <bsd.port.mk>