aboutsummaryrefslogtreecommitdiff
path: root/graphics/ocrfeeder/Makefile
blob: 9e58157d509233f048e1c9c4d193c0bc0f8b1daa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: buganini@gmail.com
# $FreeBSD$

PORTNAME=	ocrfeeder
PORTVERSION=	0.7.7
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR=sources/ocrfeeder/${PORTVERSION:R}

MAINTAINER=	buganini@gmail.com
COMMENT=	Document layout analysis and optical character recognition

LICENSE=	GPLv3

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}enchant>=0:${PORTSDIR}/textproc/py-enchant \
		${PYTHON_PKGNAMEPREFIX}imaging>=0:${PORTSDIR}/graphics/py-imaging \
		${PYTHON_PKGNAMEPREFIX}sane>=0:${PORTSDIR}/graphics/py-sane \
		${PYTHON_PKGNAMEPREFIX}reportlab2>=0:${PORTSDIR}/print/py-reportlab2 \
		${PYTHON_PKGNAMEPREFIX}goocanvas>=0:${PORTSDIR}/graphics/py-goocanvas
RUN_DEPENDS:=	${BUILD_DEPENDS} \
		unpaper:${PORTSDIR}/graphics/unpaper

MAN1=		ocrfeeder-cli.1 ocrfeeder.1

USE_XZ=		yes
GNU_CONFIGURE=	yes
USE_PYTHON=	yes
USE_GNOME=	pygtk2 pygnomeextras
USES=		gettext gmake pkgconfig
USE_GHOSTSCRIPT=yes

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
CONFIGURE_ARGS+=	--disable-nls
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>