2008-01-04 12:48:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2008/01/04 17:48:35 espie Exp $
|
2006-10-30 03:17:30 -05:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT-main= OCR software
|
|
|
|
COMMENT-gui= gocr tcl/tk frontend
|
2006-10-30 03:17:30 -05:00
|
|
|
|
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
|
|
|
|
|
2006-10-30 03:17:30 -05:00
|
|
|
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
|
2008-01-04 12:48:33 -05:00
|
|
|
FAKE_FLAGS+= prefix=${PREFIX} exec_prefix=${PREFIX}
|
2006-10-30 03:17:30 -05:00
|
|
|
|
2006-11-20 14:49:51 -05:00
|
|
|
MULTI_PACKAGES= -main -gui
|
2006-10-30 03:17:30 -05:00
|
|
|
|
2006-11-20 14:49:51 -05:00
|
|
|
PKG_ARCH-gui= *
|
|
|
|
RUN_DEPENDS-gui=:tk-8.4.*:x11/tk/8.4 \
|
2006-10-30 03:17:30 -05:00
|
|
|
::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
|
2006-10-30 03:17:30 -05:00
|
|
|
|
|
|
|
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>
|