summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/gocr/DESCR7
-rw-r--r--textproc/gocr/Makefile17
-rw-r--r--textproc/gocr/PLIST5
-rw-r--r--textproc/gocr/distinfo5
-rw-r--r--textproc/gocr/patches/patch-aa16
5 files changed, 50 insertions, 0 deletions
diff --git a/textproc/gocr/DESCR b/textproc/gocr/DESCR
new file mode 100644
index 00000000000..307e0ac2a92
--- /dev/null
+++ b/textproc/gocr/DESCR
@@ -0,0 +1,7 @@
+GOCR is an optical character recognition program, released under the GNU
+General Public License. It reads images in many formats (pnm, pbm, pgm, ppm,
+some pcx and tga image files (or PNM from stdin); if PNM-tools installed and
+running linux-like system you can also use pnm.gz, pnm.bz2, png, jpg, tiff,
+gif, bmp and others) and outputs a text file. You do not have to train the
+program or store large font bases. Simply call gocr from the command line
+and get your results.
diff --git a/textproc/gocr/Makefile b/textproc/gocr/Makefile
new file mode 100644
index 00000000000..6997db16d47
--- /dev/null
+++ b/textproc/gocr/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/23 07:19:38 mrg Exp $
+
+DISTNAME= gocr-0.37
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jocr/}
+
+MAINTAINER= tech-pkg@netbsd.org
+HOMEPAGE= http://sourceforge.net/projects/jocr
+COMMENT= GOCR is s set set of OCR tools
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+MAKE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
+CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/gocr/PLIST b/textproc/gocr/PLIST
new file mode 100644
index 00000000000..27f473038f3
--- /dev/null
+++ b/textproc/gocr/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/23 07:19:38 mrg Exp $
+bin/gocr
+include/gocr.h
+lib/libPgm2asc.a
+man/man1/gocr.1
diff --git a/textproc/gocr/distinfo b/textproc/gocr/distinfo
new file mode 100644
index 00000000000..c4eb0da161d
--- /dev/null
+++ b/textproc/gocr/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/23 07:19:38 mrg Exp $
+
+SHA1 (gocr-0.37.tar.gz) = 41fa2e3f1fc17d27f1f1610441cec4d5f4a6201e
+Size (gocr-0.37.tar.gz) = 672962 bytes
+SHA1 (patch-aa) = cbe18fbaced7a726225e02315a6e157f93c9b2fe
diff --git a/textproc/gocr/patches/patch-aa b/textproc/gocr/patches/patch-aa
new file mode 100644
index 00000000000..dcb0b59013e
--- /dev/null
+++ b/textproc/gocr/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/23 07:19:38 mrg Exp $
+
+--- configure.orig 2002-08-13 01:18:53.000000000 +1000
++++ configure 2003-06-21 05:42:36.000000000 +1000
+@@ -946,9 +946,9 @@ else
+ fi
+
+
+-CPPFLAGS=-I/usr/X11R6/include
++CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include"
+ #LDFLAGS="-L/usr/X11R6/lib -lpbm -lpgm -lppm -lpnm"
+-LDFLAGS="-L/usr/X11R6/lib -L/usr/local/netpbm/lib"
++LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
+
+ ## pnm can only be found, if LDFLAGS contains -lpgm -lpnm ... etc.
+ ## is there a better solution ?