openbsd-ports/graphics/gocr/Makefile

59 lines
1.2 KiB
Makefile
Raw Normal View History

2012-01-26 23:12:19 -05:00
# $OpenBSD: Makefile,v 1.12 2012/01/27 04:12:19 william Exp $
COMMENT-main= OCR software
COMMENT-gui= gocr tcl/tk frontend
V= 0.48
2006-11-20 14:49:51 -05:00
DISTNAME= gocr-$V
2007-03-17 18:03:30 -04:00
PKGNAME-main= gocr-$V
PKGNAME-gui= gocr-gui-$V
2012-01-26 23:12:19 -05:00
REVISION-main = 0
REVISION-gui = 1
2006-11-20 14:49:51 -05:00
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jocr/}
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
2010-10-18 14:13:12 -04:00
USE_GROFF = Yes
FAKE_FLAGS+= prefix=${PREFIX} exec_prefix=${PREFIX}
2006-11-20 14:49:51 -05:00
MULTI_PACKAGES= -main -gui
2009-07-18 17:37:53 -04:00
MODULES= x11/tk
2006-11-20 14:49:51 -05:00
PKG_ARCH-gui= *
2009-07-18 17:37:53 -04:00
RUN_DEPENDS-gui=${MODTK_RUN_DEPENDS} \
2010-11-17 03:05:12 -05:00
graphics/xsane \
textproc/p5-tkispell \
graphics/gocr
2006-11-20 14:49:51 -05:00
2010-11-17 03:05:12 -05:00
WANTLIB-main= c m netpbm
LIB_DEPENDS-main=graphics/netpbm
post-extract:
rm ${WRKSRC}/src/barcode.c.orig
pre-configure:
${SUBST_CMD} ${WRKSRC}/man/man1/gocr.1 \
${WRKSRC}/bin/gocr.tcl
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>