freebsd-ports/graphics/ocrfeeder/Makefile
Jason Helfman 50e462f9e3 - Update to 0.7.7
- Account for DISABLE_NLS
- Add patch for runtime bug

PR:	ports/164202
Submitted by: maintainer
Approved by:	crees, rene (mentors)
2012-01-24 19:54:22 +00:00

49 lines
1.2 KiB
Makefile

# New ports collection makefile for: ocrfeeder
# Date created: 5 August 2011
# Whom: buganini@gmail.com
#
# $FreeBSD$
#
PORTNAME= ocrfeeder
PORTVERSION= 0.7.7
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_GMAKE= yes
USE_PYTHON= yes
USE_GNOME= pygtk2 pygnomeextras
USE_GETTEXT= yes
USE_GHOSTSCRIPT=yes
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+= --disable-nls
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>