-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (42 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $OpenBSD: Makefile,v 1.11 2011/09/16 10:02:37 espie Exp $
COMMENT-main= OCR software
COMMENT-gui= gocr tcl/tk frontend
V= 0.48
DISTNAME= gocr-$V
PKGNAME-main= gocr-$V
PKGNAME-gui= gocr-gui-$V
REVISION-gui = 0
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jocr/}
MAINTAINER= William Yodlowsky <[email protected]>
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
USE_GROFF = Yes
FAKE_FLAGS+= prefix=${PREFIX} exec_prefix=${PREFIX}
MULTI_PACKAGES= -main -gui
MODULES= x11/tk
PKG_ARCH-gui= *
RUN_DEPENDS-gui=${MODTK_RUN_DEPENDS} \
graphics/xsane \
textproc/p5-tkispell \
graphics/gocr
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>