From owner-svn-ports-all@FreeBSD.ORG Sat Dec 15 09:50:39 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C57C4207; Sat, 15 Dec 2012 09:50:39 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 917318FC13; Sat, 15 Dec 2012 09:50:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBF9odbi025335; Sat, 15 Dec 2012 09:50:39 GMT (envelope-from bsam@svn.freebsd.org) Received: (from bsam@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBF9od3X025334; Sat, 15 Dec 2012 09:50:39 GMT (envelope-from bsam@svn.freebsd.org) Message-Id: <201212150950.qBF9od3X025334@svn.freebsd.org> From: Boris Samorodov Date: Sat, 15 Dec 2012 09:50:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308941 - head/graphics/yagf X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 09:50:39 -0000 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 + +.if ${PORT_OPTIONS:MCUNEIFORM} +RUN_DEPENDS+= cuneiform:${PORTSDIR}/graphics/cuneiform +.endif +.if ${PORT_OPTIONS:MTESSERACT} +RUN_DEPENDS+= tesseract:${PORTSDIR}/graphics/tesseract +.endif + .include