View | Details | Raw Unified | Return to bug 189452
Collapse All | Expand All

(-)./Makefile (-4 / +6 lines)
Lines 2-23 Link Here
2
# $FreeBSD: head/japanese/nhocr/Makefile 327737 2013-09-20 18:47:54Z bapt $
2
# $FreeBSD: head/japanese/nhocr/Makefile 327737 2013-09-20 18:47:54Z bapt $
3
3
4
PORTNAME=	nhocr
4
PORTNAME=	nhocr
5
PORTVERSION=	0.16
5
PORTVERSION=	0.21
6
CATEGORIES=	japanese graphics
6
CATEGORIES=	japanese graphics
7
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
7
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
8
8
9
MAINTAINER=	hiroto.kagotani@gmail.com
9
MAINTAINER=	hiroto.kagotani@gmail.com
10
COMMENT=	OCR engine for Japanese language
10
COMMENT=	OCR engine for Japanese language
11
11
12
LICENSE=	APACHE20
13
12
BUILD_DEPENDS=	${LOCALBASE}/lib/libsip.a:${PORTSDIR}/graphics/O2-tools
14
BUILD_DEPENDS=	${LOCALBASE}/lib/libsip.a:${PORTSDIR}/graphics/O2-tools
15
LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2
13
16
14
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
15
CONFIGURE_ARGS=	--with-O2tools=${LOCALBASE} --datadir=${DATADIR}
18
CONFIGURE_ARGS=	--with-O2tools=${LOCALBASE} --datadir=${DATADIR}
16
19
17
NO_STAGE=	yes
18
post-install:
20
post-install:
19
	${MKDIR} ${PREFIX}/share/ocropus/scripts
21
	${MKDIR} ${STAGEDIR}${PREFIX}/share/ocropus/scripts
20
	${INSTALL_DATA} ${WRKSRC}/ocropus/rec-nhocr-0.3.lua ${PREFIX}/share/ocropus/scripts/rec-nhocr.lua
22
	${INSTALL_DATA} ${WRKSRC}/ocropus/rec-nhocr-0.3.lua ${STAGEDIR}${PREFIX}/share/ocropus/scripts/rec-nhocr.lua
21
	@${CAT} ${PKGMESSAGE}
23
	@${CAT} ${PKGMESSAGE}
22
24
23
.include <bsd.port.mk>
25
.include <bsd.port.mk>
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (nhocr-0.16.tar.gz) = 68369747a0f5989df5a69969f3933e919d70ddd4e8dbdd70629bb06512d459f2
1
SHA256 (nhocr-0.21.tar.gz) = b862391deb1d2b0bf54e316cf7037018c370c9c835dcea61a047be2c8ea6e9f8
2
SIZE (nhocr-0.16.tar.gz) = 5775971
2
SIZE (nhocr-0.21.tar.gz) = 6234716
(-)./files/patch-libnhocr__nhrec.cpp (-11 lines)
Lines 1-11 Link Here
1
--- ./libnhocr/nhrec.cpp.orig	2009-05-10 23:56:11.000000000 +0900
2
+++ ./libnhocr/nhrec.cpp	2009-05-19 19:24:48.000000000 +0900
3
@@ -45,7 +45,7 @@
4
 
5
 
6
 // default file/path names
7
-static char	*nhocrlibdir0 = "/opt/nhocr/share";
8
+static char	*nhocrlibdir0 = "/usr/local/share/nhocr";
9
 static char	*cctablefile0 = "cctable.utf-8";
10
 static char	*dicfile0 = "PLM.dic";
11
 
(-)./files/patch-libnhocr__ocrbase.cpp (-11 lines)
Lines 1-11 Link Here
1
--- ./libnhocr/ocrbase.cpp.orig	2009-05-15 15:55:20.000000000 +0900
2
+++ ./libnhocr/ocrbase.cpp	2009-05-19 19:24:48.000000000 +0900
3
@@ -9,7 +9,7 @@
4
 #include	<stdlib.h>
5
 #include	<string.h>
6
 #include	<math.h>
7
-#include	<values.h>
8
+#include	<float.h>
9
 
10
 #if defined (__SVR4) && defined (__sun)
11
 #include	<float.h>
(-)./files/patch-makechar__Makefile.in (+13 lines)
Line 0 Link Here
1
--- ./makechar/Makefile.in.orig	2013-05-04 00:52:33.306113000 +0900
2
+++ ./makechar/Makefile.in	2014-05-07 20:53:43.000000000 +0900
3
@@ -178,8 +178,8 @@
4
 top_builddir = @top_builddir@
5
 top_srcdir = @top_srcdir@
6
 makechar_SOURCES = makechar.cpp
7
-AM_CXXFLAGS = -I/usr/include/freetype2 -I/usr/sfw/include/freetype2 -I../libnhocr
8
-makechar_LDADD = -L/usr/sfw/lib -L../libnhocr -lm -lfreetype -lnhocr -lufp -lsip
9
+AM_CXXFLAGS = -I$(LOCALBASE)/include/freetype2 -I../libnhocr
10
+makechar_LDADD = -L$(LOCALBASE)/lib -L../libnhocr -lm -lfreetype -lnhocr -lufp -lsip
11
 all: all-am
12
 
13
 .SUFFIXES:
(-)./files/patch-ocropus__rec-nhocr-0.3.lua (-1 / +1 lines)
Lines 1-5 Link Here
1
--- ./ocropus/rec-nhocr-0.3.lua.orig	2009-05-15 17:17:07.000000000 +0900
1
--- ./ocropus/rec-nhocr-0.3.lua.orig	2009-05-15 17:17:07.000000000 +0900
2
+++ ./ocropus/rec-nhocr-0.3.lua	2009-05-19 19:34:47.000000000 +0900
2
+++ ./ocropus/rec-nhocr-0.3.lua	2014-05-07 20:53:43.000000000 +0900
3
@@ -41,6 +41,6 @@
3
@@ -41,6 +41,6 @@
4
    for i = 1,regions:length()-1 do
4
    for i = 1,regions:length()-1 do
5
       regions:extract(line_image,page_image,i,1)
5
       regions:extract(line_image,page_image,i,1)
(-)./pkg-plist (-4 / +10 lines)
Lines 1-11 Link Here
1
bin/nhocr
1
bin/nhocr
2
%%DATADIR%%/PLM.dic
2
include/codelist.h
3
%%DATADIR%%/cctable.utf-8
3
include/gramdclient.h
4
include/nhocr.h
4
include/nhocr.h
5
include/ocrbase.h
5
include/ocrbase.h
6
include/codelist.h
7
lib/libnhocr.a
6
lib/libnhocr.a
7
sbin/makechar
8
sbin/makedic
9
sbin/makevec
10
%%DATADIR%%/PLM-ascii+.dic
11
%%DATADIR%%/PLM-jpn.dic
12
%%DATADIR%%/cctable-ascii+
13
%%DATADIR%%/cctable-jpn
8
share/ocropus/scripts/rec-nhocr.lua
14
share/ocropus/scripts/rec-nhocr.lua
9
@dirrm %%DATADIR%%
10
@dirrmtry share/ocropus/scripts
15
@dirrmtry share/ocropus/scripts
11
@dirrmtry share/ocropus
16
@dirrmtry share/ocropus
17
@dirrm %%DATADIR%%

Return to bug 189452