aboutsummaryrefslogtreecommitdiff
path: root/graphics/claraocr
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-11-06 07:45:38 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-11-06 07:45:38 +0000
commite3f7d44b3537e340113002f7b5b2a1c8f76bebf3 (patch)
tree825d7caeef46b41d374d564590806c0328754ee7 /graphics/claraocr
parent4f21bb209e9ee80434cf8928c544c56b4f7eb3af (diff)
downloadports-e3f7d44b3537e340113002f7b5b2a1c8f76bebf3.tar.gz
ports-e3f7d44b3537e340113002f7b5b2a1c8f76bebf3.zip
Notes
Diffstat (limited to 'graphics/claraocr')
-rw-r--r--graphics/claraocr/Makefile29
-rw-r--r--graphics/claraocr/distinfo1
-rw-r--r--graphics/claraocr/files/patch-Makefile50
-rw-r--r--graphics/claraocr/pkg-comment1
-rw-r--r--graphics/claraocr/pkg-descr6
-rw-r--r--graphics/claraocr/pkg-plist10
6 files changed, 97 insertions, 0 deletions
diff --git a/graphics/claraocr/Makefile b/graphics/claraocr/Makefile
new file mode 100644
index 000000000000..4c0c74602c2b
--- /dev/null
+++ b/graphics/claraocr/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: claraocr
+# Date created: 5 November 2001
+# Whom: petef
+#
+# $FreeBSD$
+#
+
+PORTNAME= claraocr
+PORTVERSION= 0.9.8
+CATEGORIES= graphics
+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/
+DISTNAME= clara-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_PERL5= yes
+
+MAN1= clara-adv.1 clara-dev.1 clara.1
+
+post-patch:
+ @${PERL} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/Makefile
+ @${PERL} -pi -e 's,^#!/usr/bin/perl,#!${PERL},g' ${WRKSRC}/clara.pl \
+ ${WRKSRC}/mkdoc.pl ${WRKSRC}/selthresh.pl
+
+.include <bsd.port.mk>
diff --git a/graphics/claraocr/distinfo b/graphics/claraocr/distinfo
new file mode 100644
index 000000000000..d7da70562aa0
--- /dev/null
+++ b/graphics/claraocr/distinfo
@@ -0,0 +1 @@
+MD5 (clara-0.9.8.tar.gz) = ffdb2c3a419c76635d3c653af8914615
diff --git a/graphics/claraocr/files/patch-Makefile b/graphics/claraocr/files/patch-Makefile
new file mode 100644
index 000000000000..b6929813126a
--- /dev/null
+++ b/graphics/claraocr/files/patch-Makefile
@@ -0,0 +1,50 @@
+$FreeBSD$
+
+--- Makefile.orig Mon Nov 5 09:46:33 2001
++++ Makefile Mon Nov 5 09:48:41 2001
+@@ -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
+@@ -44,7 +44,7 @@
+ #
+ INCLUDE = -I/usr/X11R6/include
+ LIBPATH = -L/usr/X11R6/lib
+-CC = gcc
++CC ?= gcc
+
+ #
+ # Now choose the Clara OCR compilation options:
+@@ -83,7 +83,7 @@
+ #
+ # Add or remove flags if necessary:
+ #
+-CFLAGS = $(INCLUDE) -g -O2 -Wall $(COPTS)
++CFLAGS += $(INCLUDE) -g -Wall $(COPTS)
+ #CFLAGS = $(INCLUDE) -g -O2 -pedantic $(COPTS)
+ #CFLAGS = $(INCLUDE) -g -O2 $(COPTS)
+
+@@ -158,8 +158,10 @@
+ install selthresh.pl $(BINDIR)
+ install -d $(MANDIR)
+ install doc/clara.1 doc/clara-dev.1 doc/clara-adv.1 $(MANDIR)
++.ifndef NOPORTDOCS
+ install -d $(DOCDIR)
+ install ANNOUNCE CHANGELOG doc/FAQ doc/*.html $(DOCDIR)
++.endif
+
+ clean:
+ rm -f clara sclara $(OBJS) doc/clara-*.1 doc/clara-*.html doc/FAQ
diff --git a/graphics/claraocr/pkg-comment b/graphics/claraocr/pkg-comment
new file mode 100644
index 000000000000..e7cfc10f7b4a
--- /dev/null
+++ b/graphics/claraocr/pkg-comment
@@ -0,0 +1 @@
+Optical character recognition (OCR) utility
diff --git a/graphics/claraocr/pkg-descr b/graphics/claraocr/pkg-descr
new file mode 100644
index 000000000000..3232e2e1285c
--- /dev/null
+++ b/graphics/claraocr/pkg-descr
@@ -0,0 +1,6 @@
+Clara is an OCR program. OCR stands for "Optical Character Recognition".
+An OCR program tries to recognize the characters from the digital image
+of a paper document. The name Clara stands for "Cooperative Lightweight
+chAracter Recognizer".
+
+WWW: http://www.claraocr.org/
diff --git a/graphics/claraocr/pkg-plist b/graphics/claraocr/pkg-plist
new file mode 100644
index 000000000000..bff7383c1e8c
--- /dev/null
+++ b/graphics/claraocr/pkg-plist
@@ -0,0 +1,10 @@
+bin/clara
+bin/selthresh.pl
+%%PORTDOCS%%share/doc/clara/ANNOUNCE
+%%PORTDOCS%%share/doc/clara/CHANGELOG
+%%PORTDOCS%%share/doc/clara/FAQ
+%%PORTDOCS%%share/doc/clara/clara-adv.html
+%%PORTDOCS%%share/doc/clara/clara-dev.html
+%%PORTDOCS%%share/doc/clara/clara-faq.html
+%%PORTDOCS%%share/doc/clara/clara-tut.html
+%%PORTDOCS%%@dirrm share/doc/clara