freebsd-ports/graphics/tesseract/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

59 lines
1.5 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= tesseract
PORTVERSION= 3.05.02
PORTREVISION= 4
CATEGORIES= graphics
MAINTAINER= pkubaj@anongoth.pl
COMMENT= Commercial quality open source OCR engine
LICENSE= APACHE20
LIB_DEPENDS= liblept.so:graphics/leptonica
RUN_DEPENDS= tesseract-data>=0:graphics/tesseract-data
USES= autoreconf compiler:c++11-lang localbase libtool pathfix pkgconfig
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}-ocr
CONFIGURE_ENV= LIBLEPT_HEADERSDIR="${LOCALBASE}/include/leptonica"
DATADIR= ${PREFIX}/share/tessdata
PORTDATA= *
PORTDOCS= AUTHORS ChangeLog README.md
PORTEXAMPLES= eurotext.tif phototest.tif
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DOCS EXAMPLES TOOLS
OPTIONS_DEFAULT=TOOLS
OPTIONS_SUB= yes
TOOLS_DESC= Include training tools
TOOLS_LIB_DEPENDS=libicui18n.so:devel/icu \
libfontconfig.so:x11-fonts/fontconfig
TOOLS_USES= compiler:c++11-lib
TOOLS_USE= GNOME=cairo,glib20,pango
post-patch:
@${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure.ac
post-build-TOOLS-on:
@cd ${WRKSRC} && ${MAKE} training
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} testing/eurotext.tif \
testing/phototest.tif ${STAGEDIR}${EXAMPLESDIR}
post-install-TOOLS-on:
@cd ${WRKSRC} && ${MAKE} DESTDIR=${STAGEDIR} training-install
.include <bsd.port.mk>