Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2012 09:50:39 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308941 - head/graphics/yagf
Message-ID:  <201212150950.qBF9od3X025334@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212150950.qBF9od3X025334>