summaryrefslogtreecommitdiff
path: root/graphics/claraocr
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-03-22 15:34:02 +0000
committerwiz <wiz@pkgsrc.org>2002-03-22 15:34:02 +0000
commit5a9c3064ad4f4e9ff5c0a62fa76946f251c90d65 (patch)
tree6447835bf49502b1fe5050f66203e3c051234444 /graphics/claraocr
parentb75da6892aae750e2652736c51121409c9171c32 (diff)
downloadpkgsrc-5a9c3064ad4f4e9ff5c0a62fa76946f251c90d65.tar.gz
Initial import of clara OCR, provided by Ben Wong in pkg/16006, overwhauled
by me. From the DESCR: Clara OCR is a free (GPL) Optical Character Recognition (OCR) program for systems that support the C library and the X windows system (e.g. most flavours of Unix). The development platform of Clara OCR is 32-bit Intel running GNU/Linux. Clara OCR is intended for large scale digitalization projects. It features a powerful GUI and a web interface for cooperative digitalization of books. Clara OCR development started in 1999 and is approaching production quality. Features: Converts pbm/pgm image files to text (ISO-8859) Can process scans in batch for large documents Can run from the command-line Is relatively easy to train Non-features: Is not "omnifont"; you must train it for each document Does not scan the images Does not support unicode Cannot read handwriting
Diffstat (limited to 'graphics/claraocr')
-rw-r--r--graphics/claraocr/DESCR23
-rw-r--r--graphics/claraocr/Makefile27
-rw-r--r--graphics/claraocr/PLIST15
-rw-r--r--graphics/claraocr/distinfo5
-rw-r--r--graphics/claraocr/patches/patch-aa68
5 files changed, 138 insertions, 0 deletions
diff --git a/graphics/claraocr/DESCR b/graphics/claraocr/DESCR
new file mode 100644
index 00000000000..9248fce3fed
--- /dev/null
+++ b/graphics/claraocr/DESCR
@@ -0,0 +1,23 @@
+Clara OCR is a free (GPL) Optical Character Recognition (OCR) program
+for systems that support the C library and the X windows system (e.g.
+most flavours of Unix). The development platform of Clara OCR is
+32-bit Intel running GNU/Linux.
+
+Clara OCR is intended for large scale digitalization projects. It
+features a powerful GUI and a web interface for cooperative
+digitalization of books. Clara OCR development started in 1999 and
+is approaching production quality.
+
+Features:
+
+ Converts pbm/pgm image files to text (ISO-8859)
+ Can process scans in batch for large documents
+ Can run from the command-line
+ Is relatively easy to train
+
+Non-features:
+
+ Is not "omnifont"; you must train it for each document
+ Does not scan the images
+ Does not support unicode
+ Cannot read handwriting
diff --git a/graphics/claraocr/Makefile b/graphics/claraocr/Makefile
new file mode 100644
index 00000000000..295ff25727b
--- /dev/null
+++ b/graphics/claraocr/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/03/22 15:34:02 wiz Exp $
+#
+
+DISTNAME= clara-0.9.8
+CATEGORIES= graphics textproc
+MASTER_SITES= ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrake-devel/projects/claraocr/ \
+ ftp://ftp.wtfo.com/pub/linux/Mandrake-devel/projects/claraocr/ \
+ ftp://gd.tuwien.ac.at/pub/linux/Mandrake-devel/projects/claraocr/ \
+ ftp://mandrake.redbox.cz/Mandrake-devel/projects/claraocr/ \
+ ftp://ftp.proxad.net/pub/Distributions_Linux/Mandrake-devel/projects/claraocr/
+
+MAINTAINER= Benjamin.Wong@cc.gatech.edu
+HOMEPAGE= http://www.claraocr.org/
+COMMENT= Optical Character Recognition (OCR) program for books
+
+DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
+
+USE_PERL5= YES
+REPLACE_PERL= clara.pl mkdoc.pl selthresh.pl
+USE_BUILDLINK_ONLY= YES
+
+# install a example input file
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/imre.pbm ${PREFIX}/share/doc/clara
+
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/claraocr/PLIST b/graphics/claraocr/PLIST
new file mode 100644
index 00000000000..d6e394d70c2
--- /dev/null
+++ b/graphics/claraocr/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/22 15:34:02 wiz Exp $
+bin/clara
+bin/selthresh.pl
+man/man1/clara-adv.1
+man/man1/clara-dev.1
+man/man1/clara.1
+share/doc/clara/ANNOUNCE
+share/doc/clara/CHANGELOG
+share/doc/clara/FAQ
+share/doc/clara/clara-adv.html
+share/doc/clara/clara-dev.html
+share/doc/clara/clara-faq.html
+share/doc/clara/clara-tut.html
+share/doc/clara/imre.pbm
+@dirrm share/doc/clara
diff --git a/graphics/claraocr/distinfo b/graphics/claraocr/distinfo
new file mode 100644
index 00000000000..733ea3c2e9b
--- /dev/null
+++ b/graphics/claraocr/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/03/22 15:34:02 wiz Exp $
+
+SHA1 (clara-0.9.8.tar.gz) = edd2bab8ce12197f28a09e101c79a433d5d62ba3
+Size (clara-0.9.8.tar.gz) = 316102 bytes
+SHA1 (patch-aa) = e72585149c63316160eedcb38900bb1caff16e74
diff --git a/graphics/claraocr/patches/patch-aa b/graphics/claraocr/patches/patch-aa
new file mode 100644
index 00000000000..4d6d09cea56
--- /dev/null
+++ b/graphics/claraocr/patches/patch-aa
@@ -0,0 +1,68 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/03/22 15:34:03 wiz Exp $
+
+--- Makefile.orig Sun Oct 21 00:16:38 2001
++++ Makefile
+@@ -28,13 +28,13 @@
+ #
+ # Configure the destination directories:
+ #
+-BINDIR=/usr/local/bin
++BINDIR=${PREFIX}/bin
+ #BINDIR=/usr/bin
+
+-MANDIR=/usr/local/man/man1
++MANDIR=${PREFIX}/man/man1
+ #MANDIR=/usr/man/man1
+
+-DOCDIR=/usr/local/doc/clara
++DOCDIR=${PREFIX}/share/doc/clara
+ #DOCDIR=/usr/doc/clara
+ #DOCDIR=/usr/doc/clara-$(VERSION)
+ #DOCDIR=/usr/share/doc/clara
+@@ -42,8 +42,8 @@
+ #
+ # Configure these variables accordingly to your system:
+ #
+-INCLUDE = -I/usr/X11R6/include
+-LIBPATH = -L/usr/X11R6/lib
++INCLUDE = -I${BUILDLINK_DIR}/include
++LIBPATH = -L${BUILDLINK_DIR}/lib
+ CC = gcc
+
+ #
+@@ -83,14 +83,14 @@
+ #
+ # Add or remove flags if necessary:
+ #
+-CFLAGS = $(INCLUDE) -g -O2 -Wall $(COPTS)
++CFLAGS += $(INCLUDE) -g -O2 -Wall $(COPTS)
+ #CFLAGS = $(INCLUDE) -g -O2 -pedantic $(COPTS)
+ #CFLAGS = $(INCLUDE) -g -O2 $(COPTS)
+
+ #
+ # Add or remove flags if necessary:
+ #
+-LDFLAGS = -g
++LDFLAGS += -g
+
+ #
+ # If your system requires additional libs, please add them:
+@@ -153,13 +153,11 @@
+ ./clara -p 2
+
+ install: all
+- install -d $(BINDIR)
+- install clara $(BINDIR)
+- install selthresh.pl $(BINDIR)
+- install -d $(MANDIR)
+- install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
+- install -d $(DOCDIR)
+- install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
++ ${BSD_INSTALL_PROGRAM} clara $(BINDIR)
++ ${BSD_INSTALL_SCRIPT} selthresh.pl $(BINDIR)
++ ${BSD_INSTALL_MAN} doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
++ ${BSD_INSTALL_DATA_DIR} $(DOCDIR)
++ ${BSD_INSTALL_DATA} ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
+
+ clean:
+ rm -f clara sclara $(OBJS) doc/clara-*.1 doc/clara-*.html doc/FAQ