openbsd-ports/graphics/gocr/Makefile
2006-11-20 19:49:51 +00:00

55 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2006/11/20 19:49:51 espie Exp $
COMMENT-main= "OCR software"
COMMENT-gui= "gocr tcl/tk frontend"
V= 0.41
DISTNAME= gocr-$V
PKGNAME-main= gocr-$Vp0
PKGNAME-gui= gocr-gui-$V
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jocr/}
MAINTAINER= William Yodlowsky <bsd@openbsd.rutgers.edu>
HOMEPAGE= http://www-e.uni-magdeburg.de/jschulen/ocr/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
PATCHFILES+= gocr-0.41-pgm.patch
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-netpbm=${PREFIX}
USE_GMAKE= Yes
FAKE_FLAGS+= DESTDIR=${DESTDIR} \
prefix=${PREFIX} exec_prefix=${PREFIX}
MULTI_PACKAGES= -main -gui
PKG_ARCH-gui= *
RUN_DEPENDS-gui=:tk-8.4.*:x11/tk/8.4 \
::graphics/xsane \
::textproc/p5-tkispell \
::graphics/gocr
WANTLIB-main= c m
LIB_DEPENDS-main=netpbm.>=0::graphics/netpbm
pre-configure:
perl -pi -e 's,\@\@LOCALBASE\@\@,${LOCALBASE},g' \
${WRKSRC}/man/man1/gocr.1
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gocr
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gocr
${INSTALL_DATA} ${WRKSRC}/doc/gocr.html ${PREFIX}/share/doc/gocr
.include <bsd.port.mk>