aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-04-12 02:23:21 +0800
committervs <vs@FreeBSD.org>2005-04-12 02:23:21 +0800
commit7288c969619dc4eb975011fdde0bad6f982f9472 (patch)
treecb401fc0648d31d01aaee269f929334f8e4dc7d2
parent34491eb27710ee41303eaf2b8b7afdd56185f2a5 (diff)
downloadfreebsd-ports-gnome-7288c969619dc4eb975011fdde0bad6f982f9472.tar.gz
freebsd-ports-gnome-7288c969619dc4eb975011fdde0bad6f982f9472.tar.zst
freebsd-ports-gnome-7288c969619dc4eb975011fdde0bad6f982f9472.zip
- Update to 0.40
- Use netpbm for increased functionality - Make TK-dep optional PR: ports/79426 Submitted by: maintainer
-rw-r--r--graphics/gocr/Makefile22
-rw-r--r--graphics/gocr/distinfo4
-rw-r--r--graphics/gocr/pkg-plist3
3 files changed, 20 insertions, 9 deletions
diff --git a/graphics/gocr/Makefile b/graphics/gocr/Makefile
index c5f160283de2..cfd63039463c 100644
--- a/graphics/gocr/Makefile
+++ b/graphics/gocr/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gocr
-PORTVERSION= 0.39
+PORTVERSION= 0.40
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jocr
@@ -15,20 +15,34 @@ MAINTAINER= kay_lehmann@web.de
COMMENT= GOCR/JOCR is an OCR (Optical Character Recognition) program
BUILD_DEPENDS= latex:${PORTSDIR}/print/teTeX
+LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm
USE_GMAKE= yes
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+CONFIGURE_ARGS+= --with-netpbm=${LOCALBASE}
+
+.if !defined(WITHOUT_X11)
+RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
+PLIST_FILES+= bin/gocr.tcl
+.endif
MAN1= gocr.1
PORTDOCS= examples.txt gocr.html unicode.txt
+PLIST_FILES+= bin/gocr include/gocr.h lib/libPgm2asc.a
+
+post-patch:
+.if defined(WITHOUT_X11)
+ @${REINPLACE_CMD} -e '/gocr.tcl/d' ${WRKSRC}/src/Makefile.in
+.else
+ @${REINPLACE_CMD} -e 's/exec wish/exec wish8.4/' ${WRKSRC}/bin/gocr.tcl
+.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
-.endfor
+ @(cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.include <bsd.port.mk>
diff --git a/graphics/gocr/distinfo b/graphics/gocr/distinfo
index 42e963a58dcf..17afdb3d017e 100644
--- a/graphics/gocr/distinfo
+++ b/graphics/gocr/distinfo
@@ -1,2 +1,2 @@
-MD5 (gocr-0.39.tar.gz) = 35b024988af7d3ddb00971db4e6d53a1
-SIZE (gocr-0.39.tar.gz) = 720915
+MD5 (gocr-0.40.tar.gz) = 13cc0d008747f5bb56d8b17be9b61859
+SIZE (gocr-0.40.tar.gz) = 780744
diff --git a/graphics/gocr/pkg-plist b/graphics/gocr/pkg-plist
deleted file mode 100644
index 94988c8cd462..000000000000
--- a/graphics/gocr/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/gocr
-include/gocr.h
-lib/libPgm2asc.a