summaryrefslogtreecommitdiff
path: root/graphics/ocrad
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-10-16 20:17:49 +0000
committerwiz <wiz@pkgsrc.org>2005-10-16 20:17:49 +0000
commit34d1c8a2766eed596b9d8053777aabc44f99c010 (patch)
tree14e27b3c7b81e7133e9de1bf21f1dd704026fb98 /graphics/ocrad
parent05ea9be06f6a73dd326aa7d1f27b6472394d91b0 (diff)
downloadpkgsrc-34d1c8a2766eed596b9d8053777aabc44f99c010.tar.gz
Initial import of ocrad-0.13:
GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature extraction method. It reads a bitmap image in pbm or pgm formats and produces text in byte (8-bit) or UTF-8 formats. Ocrad includes a layout analyser able to separate the columns or blocks of text normally found on printed pages.
Diffstat (limited to 'graphics/ocrad')
-rw-r--r--graphics/ocrad/DESCR6
-rw-r--r--graphics/ocrad/Makefile21
-rw-r--r--graphics/ocrad/PLIST2
-rw-r--r--graphics/ocrad/distinfo6
-rw-r--r--graphics/ocrad/patches/patch-aa13
5 files changed, 48 insertions, 0 deletions
diff --git a/graphics/ocrad/DESCR b/graphics/ocrad/DESCR
new file mode 100644
index 00000000000..e473efcc10f
--- /dev/null
+++ b/graphics/ocrad/DESCR
@@ -0,0 +1,6 @@
+GNU Ocrad is an OCR (Optical Character Recognition) program based
+on a feature extraction method. It reads a bitmap image in pbm or
+pgm formats and produces text in byte (8-bit) or UTF-8 formats.
+
+Ocrad includes a layout analyser able to separate the columns or
+blocks of text normally found on printed pages.
diff --git a/graphics/ocrad/Makefile b/graphics/ocrad/Makefile
new file mode 100644
index 00000000000..b20c6f6fe46
--- /dev/null
+++ b/graphics/ocrad/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/10/16 20:17:49 wiz Exp $
+#
+
+DISTNAME= ocrad-0.13
+CATEGORIES= graphics
+MASTER_SITES= http://ftp.gnu.org/gnu/ocrad/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.gnu.org/software/ocrad/ocrad.html
+COMMENT= GNU OCR (Optical Character Recognition) program
+
+USE_PKGLOCALEDIR= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+CONFIGURE_ARGS+= --mandir=${PREFIX:Q}/${PKGMANDIR:Q}
+CONFIGURE_ARGS+= --infodir=${PREFIX:Q}/${INFO_DIR:Q}
+
+INFO_FILES= ocrad.info
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/ocrad/PLIST b/graphics/ocrad/PLIST
new file mode 100644
index 00000000000..ef7adbc0ae6
--- /dev/null
+++ b/graphics/ocrad/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/10/16 20:17:49 wiz Exp $
+bin/ocrad
diff --git a/graphics/ocrad/distinfo b/graphics/ocrad/distinfo
new file mode 100644
index 00000000000..c89c86e0d2e
--- /dev/null
+++ b/graphics/ocrad/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/10/16 20:17:49 wiz Exp $
+
+SHA1 (ocrad-0.13.tar.bz2) = 24a42271e31531099e76bb6b1f9870029f88b35f
+RMD160 (ocrad-0.13.tar.bz2) = c16f64d725bcfb90d7e387701c7b6d43189313d1
+Size (ocrad-0.13.tar.bz2) = 66654 bytes
+SHA1 (patch-aa) = 723d0568f45a33ce3bb39c889119713f9ed6d39e
diff --git a/graphics/ocrad/patches/patch-aa b/graphics/ocrad/patches/patch-aa
new file mode 100644
index 00000000000..885cad79eb8
--- /dev/null
+++ b/graphics/ocrad/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/10/16 20:17:49 wiz Exp $
+
+--- main.cc.orig 2005-10-10 19:04:24.000000000 +0200
++++ main.cc
+@@ -198,7 +198,7 @@ int process_file( FILE *infile, const ch
+ void Ocrad::internal_error( const char * msg ) throw()
+ {
+ char buf[80];
+- std::snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
++ snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
+ show_error( buf );
+ exit( 3 );
+ }