Lines 1-45
Link Here
|
1 |
# New ports collection makefile for: gocr |
1 |
# Created by: Kay Lehmann |
2 |
# Date created: 03 June 2002 |
|
|
3 |
# Whom: Kay Lehmann |
4 |
# |
5 |
# $FreeBSD: head/graphics/gocr/Makefile 300896 2012-07-14 13:54:48Z beat $ |
2 |
# $FreeBSD: head/graphics/gocr/Makefile 300896 2012-07-14 13:54:48Z beat $ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= gocr |
4 |
PORTNAME= gocr |
9 |
PORTVERSION= 0.49 |
5 |
PORTVERSION= 0.50 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
12 |
MASTER_SITES= http://www-e.uni-magdeburg.de/jschulen/ocr/ |
7 |
MASTER_SITES= http://www-e.uni-magdeburg.de/jschulen/ocr/ |
13 |
|
8 |
|
14 |
MAINTAINER= dhn@FreeBSD.org |
9 |
MAINTAINER= dhn@FreeBSD.org |
15 |
COMMENT= An OCR (Optical Character Recognition) program |
10 |
COMMENT= OCR (Optical Character Recognition) program |
|
|
11 |
|
12 |
LICENSE= GPLv2 |
16 |
|
13 |
|
17 |
LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm |
14 |
LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm |
18 |
|
15 |
|
19 |
USE_GMAKE= yes |
|
|
20 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
21 |
CONFIGURE_ARGS= --with-netpbm=${LOCALBASE} |
17 |
CONFIGURE_ARGS= --with-netpbm=${LOCALBASE} |
|
|
18 |
USE_GMAKE= yes |
22 |
MAKE_ARGS= prefix=${PREFIX} exec_prefix=${PREFIX} DESTDIR=${DESTDIR} |
19 |
MAKE_ARGS= prefix=${PREFIX} exec_prefix=${PREFIX} DESTDIR=${DESTDIR} |
23 |
|
20 |
|
24 |
MAN1= gocr.1 |
|
|
25 |
PORTDOCS= examples.txt gocr.html unicode.txt |
26 |
PLIST_FILES= bin/gocr |
21 |
PLIST_FILES= bin/gocr |
27 |
|
22 |
|
28 |
.if !defined(WITHOUT_X11) |
23 |
MAN1= gocr.1 |
|
|
24 |
|
25 |
PORTDOCS= * |
26 |
|
27 |
DOCSRCDIR1= ${WRKSRC} |
28 |
DOC_FILES1= AUTHORS BUGS CREDITS HISTORY README READMEde.txt TODO |
29 |
|
30 |
DOCSRCDIR2= ${WRKSRC}/doc |
31 |
DOCSDIR2= ${DOCSDIR}/doc |
32 |
DOC_FILES2= *.dtd *.xml *.html *.txt *.fig *.png |
33 |
|
34 |
OPTIONS_DEFINE= X11 |
35 |
OPTIONS_DEFAULT= X11 |
36 |
|
37 |
.include <bsd.port.options.mk> |
38 |
|
39 |
.if ${PORT_OPTIONS:MX11} |
29 |
USE_TK_WRAPPER= yes |
40 |
USE_TK_WRAPPER= yes |
30 |
PLIST_FILES+= bin/gocr.tcl |
41 |
PLIST_FILES+= bin/gocr.tcl |
31 |
.endif |
42 |
.endif |
32 |
|
43 |
|
33 |
post-patch: |
44 |
post-patch: |
34 |
@${REINPLACE_CMD} -e 's|@LIBS@|-L${LOCALBASE}/lib @LIBS@|g' ${WRKSRC}/src/Makefile.in |
45 |
@${REINPLACE_CMD} -e 's|@LIBS@|-L${LOCALBASE}/lib @LIBS@|g' ${WRKSRC}/src/Makefile.in |
35 |
.if defined(WITHOUT_X11) |
46 |
.if ! ${PORT_OPTIONS:MX11} |
36 |
@${REINPLACE_CMD} -e '/gocr.tcl/d' ${WRKSRC}/src/Makefile.in |
47 |
@${REINPLACE_CMD} -e '/gocr.tcl/d' ${WRKSRC}/src/Makefile.in |
37 |
.endif |
48 |
.endif |
38 |
|
49 |
|
39 |
post-install: |
50 |
post-install: |
40 |
.if !defined(NOPORTDOCS) |
51 |
.if ${PORT_OPTIONS:MDOCS} |
41 |
@${MKDIR} ${DOCSDIR} |
52 |
@${MKDIR} ${DOCSDIR} |
42 |
@(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) |
53 |
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} |
|
|
54 |
@${MKDIR} ${DOCSDIR2} |
55 |
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2} |
43 |
.endif |
56 |
.endif |
44 |
|
57 |
|
45 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |