forked from Lainports/freebsd-ports
. change COMMENT; . introduce OPTIONS_MULTI (one or more backends may be used), use graphics/cuneiform as a default; . bump PORTREVISION.
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: Boris Samorodov <bsam@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
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 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
|
|
USE_PKGCONFIG= build
|
|
USE_GNOME= desktopfileutils
|
|
USE_QT4= corelib gui imageformats linguist_build \
|
|
moc_build qmake_build rcc_build uic_build
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
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>
|