diff options
author | bsam <bsam@FreeBSD.org> | 2012-12-15 17:50:39 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2012-12-15 17:50:39 +0800 |
commit | 592c77cb6629b529d9a02a693493b22f8533b9e5 (patch) | |
tree | 8779331123f3a78f045569250b5799a364a0352d /graphics/yagf | |
parent | 386d2e5f592fd6973f7a0bbf365e3b61ac8ff0ff (diff) | |
download | freebsd-ports-gnome-592c77cb6629b529d9a02a693493b22f8533b9e5.tar.gz freebsd-ports-gnome-592c77cb6629b529d9a02a693493b22f8533b9e5.tar.zst freebsd-ports-gnome-592c77cb6629b529d9a02a693493b22f8533b9e5.zip |
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.
Diffstat (limited to 'graphics/yagf')
-rw-r--r-- | graphics/yagf/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/graphics/yagf/Makefile b/graphics/yagf/Makefile index f041f9dbbfed..99a0e9ce3e6b 100644 --- a/graphics/yagf/Makefile +++ b/graphics/yagf/Makefile @@ -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> |