svn commit: r421687 - head/graphics/tesseract

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Sep 10 12:15:07 UTC 2016


Author: amdmi3
Date: Sat Sep 10 12:15:05 2016
New Revision: 421687
URL: https://svnweb.freebsd.org/changeset/ports/421687

Log:
  - Enable TOOLS by default
  - Fix build with TOOLS on 9.x
  - While here, cosmetic fixes
  
  PR:		212045
  Submitted by:	pkubaj at anongoth.pl (maintainer)

Modified:
  head/graphics/tesseract/Makefile

Modified: head/graphics/tesseract/Makefile
==============================================================================
--- head/graphics/tesseract/Makefile	Sat Sep 10 11:43:46 2016	(r421686)
+++ head/graphics/tesseract/Makefile	Sat Sep 10 12:15:05 2016	(r421687)
@@ -3,6 +3,7 @@
 
 PORTNAME=	tesseract
 PORTVERSION=	3.04.01
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 MAINTAINER=	pkubaj at 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
 


More information about the svn-ports-head mailing list