openbsd-ports/graphics/gocr/Makefile

53 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.5 2008/01/04 17:48:35 espie Exp $
COMMENT-main= OCR software
COMMENT-gui= gocr tcl/tk frontend
2007-03-17 18:03:30 -04:00
V= 0.44
2006-11-20 14:49:51 -05:00
DISTNAME= gocr-$V
2007-03-17 18:03:30 -04:00
PKGNAME-main= gocr-$V
2006-11-20 14:49:51 -05:00
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
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-netpbm=${PREFIX}
USE_GMAKE= Yes
FAKE_FLAGS+= prefix=${PREFIX} exec_prefix=${PREFIX}
2006-11-20 14:49:51 -05:00
MULTI_PACKAGES= -main -gui
2006-11-20 14:49:51 -05:00
PKG_ARCH-gui= *
RUN_DEPENDS-gui=:tk-8.4.*:x11/tk/8.4 \
::graphics/xsane \
::textproc/p5-tkispell \
::graphics/gocr
2006-11-20 14:49:51 -05:00
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>