svn commit: r308941 - head/graphics/yagf

Boris Samorodov bsam at FreeBSD.org
Sat Dec 15 09:50:39 UTC 2012


Author: bsam
Date: Sat Dec 15 09:50:39 2012
New Revision: 308941
URL: http://svnweb.freebsd.org/changeset/ports/308941

Log:
  The new version may use tesseract as a backend as well as cuneiform:
  . change COMMENT;
  . introduce OPTIONS_MULTI (one or more backends may be used),
    use graphics/cuneiform as a default;
  . bump PORTREVISION.

Modified:
  head/graphics/yagf/Makefile

Modified: head/graphics/yagf/Makefile
==============================================================================
--- head/graphics/yagf/Makefile	Sat Dec 15 09:31:58 2012	(r308940)
+++ head/graphics/yagf/Makefile	Sat Dec 15 09:50:39 2012	(r308941)
@@ -3,16 +3,24 @@
 
 PORTNAME=	yagf
 PORTVERSION=	0.9.2
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://symmetrica.net/cuneiform-linux/
 
 MAINTAINER=	bsam at FreeBSD.org
-COMMENT=	Graphical interface for the cuneiform OCR program
+COMMENT=	Graphical interface for an OCR program (cuneiform and tesseract)
 
 LIB_DEPENDS=	aspell:${PORTSDIR}/textproc/aspell
 
 ONLY_FOR_ARCHS=	i386 amd64
 
+OPTIONS_MULTI=		OCRENGINE
+OPTIONS_MULTI_OCRENGINE=CUNEIFORM TESSERACT
+CUNEIFORM_DESC=		Cuneiform OCR engine
+TESSERACT_DESC=		Tesseract OCR engine
+
+OPTIONS_DEFAULT=	CUNEIFORM
+
 USE_CMAKE=	yes
 USE_LDCONFIG=	yes
 INSTALLS_ICONS=	yes
@@ -27,4 +35,13 @@ CFLAGS+=	-I${LOCALBASE}/include
 post-install:
 	-update-desktop-database
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCUNEIFORM}
+RUN_DEPENDS+=	cuneiform:${PORTSDIR}/graphics/cuneiform
+.endif
+.if ${PORT_OPTIONS:MTESSERACT}
+RUN_DEPENDS+=	tesseract:${PORTSDIR}/graphics/tesseract
+.endif
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list