diff options
author | wiz <wiz> | 2002-03-22 15:34:02 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-03-22 15:34:02 +0000 |
commit | 39ee0184b6b18984ae49fc73ebffd9ed5a1ea988 (patch) | |
tree | 6447835bf49502b1fe5050f66203e3c051234444 /graphics/claraocr | |
parent | 9fbf7da4024b9aa6c8a6204cd32463971986fc13 (diff) | |
download | pkgsrc-39ee0184b6b18984ae49fc73ebffd9ed5a1ea988.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/DESCR | 23 | ||||
-rw-r--r-- | graphics/claraocr/Makefile | 27 | ||||
-rw-r--r-- | graphics/claraocr/PLIST | 15 | ||||
-rw-r--r-- | graphics/claraocr/distinfo | 5 | ||||
-rw-r--r-- | graphics/claraocr/patches/patch-aa | 68 |
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 |