1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Enable TOOLS by default

- Fix build with TOOLS on 9.x
- While here, cosmetic fixes

PR:		212045
Submitted by:	pkubaj@anongoth.pl (maintainer)
This commit is contained in:
Dmitry Marakasov 2016-09-10 12:15:05 +00:00
parent c44dbdddff
commit 4a95deb63e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421687

View File

@ -3,6 +3,7 @@
PORTNAME= tesseract
PORTVERSION= 3.04.01
PORTREVISION= 1
CATEGORIES= graphics
MAINTAINER= pkubaj@anongoth.pl
@ -28,18 +29,19 @@ 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= pkgconfig
TOOLS_USES= compiler:c++11-lib pkgconfig
TOOLS_USE= GNOME=cairo,glib20,pango
post-patch:
@${REINPLACE_CMD} -e 's|-O3 -DNDEBUG||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in
post-build-TOOLS-on:
@cd ${WRKSRC} && ${MAKE} training
@ -47,10 +49,12 @@ post-build-TOOLS-on:
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 \
cd ${WRKSRC} && ${INSTALL_DATA} testing/eurotext.tif \
testing/phototest.tif ${STAGEDIR}${EXAMPLESDIR}
post-install-TOOLS-on:
@cd ${WRKSRC} && ${MAKE} DESTDIR=${STAGEDIR} training-install