[Midnightbsd-cvs] mports [17454] trunk/graphics: add ocrad

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 21 17:30:35 EDT 2014


Revision: 17454
          http://svnweb.midnightbsd.org/mports/?rev=17454
Author:   laffer1
Date:     2014-09-21 17:30:32 -0400 (Sun, 21 Sep 2014)
Log Message:
-----------
add ocrad

Modified Paths:
--------------
    trunk/graphics/Makefile

Added Paths:
-----------
    trunk/graphics/ocrad/
    trunk/graphics/ocrad/Makefile
    trunk/graphics/ocrad/distinfo
    trunk/graphics/ocrad/files/
    trunk/graphics/ocrad/files/patch-character_r11.cc
    trunk/graphics/ocrad/files/patch-feats_test0.cc
    trunk/graphics/ocrad/files/patch-profile.cc
    trunk/graphics/ocrad/files/patch-track.cc
    trunk/graphics/ocrad/pkg-descr

Modified: trunk/graphics/Makefile
===================================================================
--- trunk/graphics/Makefile	2014-09-21 21:28:29 UTC (rev 17453)
+++ trunk/graphics/Makefile	2014-09-21 21:30:32 UTC (rev 17454)
@@ -105,6 +105,7 @@
 SUBDIR += mesa-demos
 SUBDIR += ming
 SUBDIR += netpbm
+SUBDIR += ocrad
 SUBDIR += opencv
 SUBDIR += opencv-core
 SUBDIR += openjpeg

Added: trunk/graphics/ocrad/Makefile
===================================================================
--- trunk/graphics/ocrad/Makefile	                        (rev 0)
+++ trunk/graphics/ocrad/Makefile	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,50 @@
+# Created by: Ulrich Spoerlein <q at uni.de>
+# $MidnightBSD$
+# $FreeBSD: head/graphics/ocrad/Makefile 345412 2014-02-21 13:37:15Z ehaupt $
+
+PORTNAME=	ocrad
+PORTVERSION=	0.22
+CATEGORIES=	graphics
+MASTER_SITES=	GNU
+MASTER_SITE_SUBDIR=	${PORTNAME}
+EXTRACT_SUFX=	.tar.lz
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	OCR program implemented as filter
+
+LICENSE=	gpl2
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--prefix=${PREFIX} CXXFLAGS="${CXXFLAGS}" CXX="${CXX}"
+CXXFLAGS+=	-Wall -W
+MAKE_ARGS=	-j`${SYSCTL} -n hw.ncpu`
+
+PLIST_FILES=	bin/${PORTNAME} man/man1/ocrad.1.gz
+
+PORTDOCS=	AUTHORS ChangeLog NEWS README
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+.include <bsd.mport.options.mk>
+
+EXTRACT_DEPENDS=lzip:${PORTSDIR}/archivers/lzip
+EXTRACT_CMD=	${LOCALBASE}/bin/lzip
+EXTRACT_BEFORE_ARGS=	-cd
+EXTRACT_AFTER_ARGS=	| ${TAR} -xf -
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/ocrad.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@(cd ${WRKSRC}/testsuite && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
+.endif
+
+.include <bsd.port.mk>


Property changes on: trunk/graphics/ocrad/Makefile
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/graphics/ocrad/distinfo
===================================================================
--- trunk/graphics/ocrad/distinfo	                        (rev 0)
+++ trunk/graphics/ocrad/distinfo	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,2 @@
+SHA256 (ocrad-0.22.tar.lz) = d6c9dcbcf4c9cc643edfe5a03cb6125d6c39abe59e83719effb056d63c5198fd
+SIZE (ocrad-0.22.tar.lz) = 87698


Property changes on: trunk/graphics/ocrad/distinfo
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/graphics/ocrad/files/patch-character_r11.cc
===================================================================
--- trunk/graphics/ocrad/files/patch-character_r11.cc	                        (rev 0)
+++ trunk/graphics/ocrad/files/patch-character_r11.cc	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,10 @@
+--- character_r11.cc.orig	2013-10-03 17:20:43.000000000 -0300
++++ character_r11.cc	2013-10-03 17:20:54.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ #include <stdint.h>
+ 


Property changes on: trunk/graphics/ocrad/files/patch-character_r11.cc
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/graphics/ocrad/files/patch-feats_test0.cc
===================================================================
--- trunk/graphics/ocrad/files/patch-feats_test0.cc	                        (rev 0)
+++ trunk/graphics/ocrad/files/patch-feats_test0.cc	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,10 @@
+--- feats_test0.cc.orig	2013-10-03 17:19:50.000000000 -0300
++++ feats_test0.cc	2013-10-03 17:20:00.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ #include <stdint.h>
+ 


Property changes on: trunk/graphics/ocrad/files/patch-feats_test0.cc
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/graphics/ocrad/files/patch-profile.cc
===================================================================
--- trunk/graphics/ocrad/files/patch-profile.cc	                        (rev 0)
+++ trunk/graphics/ocrad/files/patch-profile.cc	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,10 @@
+--- profile.cc.orig	2013-10-03 17:16:53.000000000 -0300
++++ profile.cc	2013-10-03 17:17:01.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ #include <stdint.h>
+ 


Property changes on: trunk/graphics/ocrad/files/patch-profile.cc
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/graphics/ocrad/files/patch-track.cc
===================================================================
--- trunk/graphics/ocrad/files/patch-track.cc	                        (rev 0)
+++ trunk/graphics/ocrad/files/patch-track.cc	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,10 @@
+--- track.cc.orig	2013-10-03 17:16:32.000000000 -0300
++++ track.cc	2013-10-03 17:16:46.000000000 -0300
+@@ -18,6 +18,7 @@
+ 
+ #include <algorithm>
+ #include <cstdio>
++#include <cstdlib>
+ #include <vector>
+ 
+ #include "common.h"


Property changes on: trunk/graphics/ocrad/files/patch-track.cc
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/graphics/ocrad/pkg-descr
===================================================================
--- trunk/graphics/ocrad/pkg-descr	                        (rev 0)
+++ trunk/graphics/ocrad/pkg-descr	2014-09-21 21:30:32 UTC (rev 17454)
@@ -0,0 +1,9 @@
+GNU Ocrad is an OCR (Optical Character Recognition) program implemented
+as a filter and based on a feature extraction method. It reads a bitmap
+image in pbm format and outputs text in ISO-8859-1 (Latin-1) charset.
+Also includes a layout analyser able to separate the columns or blocks
+of text normally found on printed pages.
+It can be used as a stand-alone console application, or as a backend to
+other programs.
+
+WWW: http://www.gnu.org/software/ocrad/ocrad.html


Property changes on: trunk/graphics/ocrad/pkg-descr
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list