diff options
author | petef <petef@FreeBSD.org> | 2001-11-06 15:45:38 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-11-06 15:45:38 +0800 |
commit | a437fab1f3cfc6347c239b975350dba80733c38a (patch) | |
tree | 03563e10bd95b3bf70e1fbdee43815733fa27289 /graphics | |
parent | 7ebfb684f718c41a1c2260438025f74e541b9bf5 (diff) | |
download | freebsd-ports-gnome-a437fab1f3cfc6347c239b975350dba80733c38a.tar.gz freebsd-ports-gnome-a437fab1f3cfc6347c239b975350dba80733c38a.tar.zst freebsd-ports-gnome-a437fab1f3cfc6347c239b975350dba80733c38a.zip |
Add claraocr-0.9.8, an optical character recognition utility
Tested by: phk
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/claraocr/Makefile | 29 | ||||
-rw-r--r-- | graphics/claraocr/distinfo | 1 | ||||
-rw-r--r-- | graphics/claraocr/files/patch-Makefile | 50 | ||||
-rw-r--r-- | graphics/claraocr/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/claraocr/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/claraocr/pkg-plist | 10 |
7 files changed, 98 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 107981aa38fc..de7a4ecff298 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -21,6 +21,7 @@ SUBDIR += camediaplay SUBDIR += camserv SUBDIR += chbg + SUBDIR += claraocr SUBDIR += cqcam SUBDIR += cthumb SUBDIR += dc20ctrl 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 |