On 2019/01/07 20:43, Antoine Jacoutot wrote:
> On January 7, 2019 5:38:19 PM GMT+01:00, Stuart Henderson <st...@openbsd.org> 
> wrote:
> >CVSROOT:     /cvs
> >Module name: ports
> >Changes by:  st...@cvs.openbsd.org   2019/01/07 09:38:19
> >
> >Modified files:
> >     graphics/tesseract/tesseract: Makefile 
> >Added files:
> >     graphics/tesseract/tesseract/patches: patch-tesseract_pc_in 
> >
> >Log message:
> >Add -I/usr/local/include to include path in tesseract's pkg-config
> >file.
> >Previously it had -I/usr/local/include/tesseract but not the above,
> >which
> >doesn't work directly with typical users which include headers with
> >"#include <tesseract/XX.h>".
> >
> >From Raphael Graf.
> 
> No bump ?
> -- 
> Antoine
> 

It's there.

---------------------
PatchSet 18 
Date: 2019/01/07 16:38:19
Author: sthen
Branch: HEAD
Tag: (none) 
Log:
Add -I/usr/local/include to include path in tesseract's pkg-config file.
Previously it had -I/usr/local/include/tesseract but not the above, which
doesn't work directly with typical users which include headers with
"#include <tesseract/XX.h>".

>From Raphael Graf.

Members: 
        Makefile:1.16->1.17 
        patches/patch-tesseract_pc_in:INITIAL->1.1 

Index: ports/graphics/tesseract/tesseract/Makefile
===================================================================
RCS file: /cvs/ports/graphics/tesseract/tesseract/Makefile,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ports/graphics/tesseract/tesseract/Makefile 4 Sep 2018 12:46:14 -0000       
1.16
+++ ports/graphics/tesseract/tesseract/Makefile 7 Jan 2019 16:38:19 -0000       
1.17
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.16 2018/09/04 12:46:14 espie Exp $
+# $OpenBSD: Makefile,v 1.17 2019/01/07 16:38:19 sthen Exp $
 
 COMMENT=       OCR Engine developed at HP Labs
 
 GH_PROJECT=    tesseract
 GH_TAGNAME=    3.05.02
-REVISION=      1
+REVISION=      2
 
 SHARED_LIBS +=  tesseract            3.2      # 3.5
 
--- /dev/null   Mon Jan  7 20:27:49 2019
+++ ports/graphics/tesseract/tesseract/patches/patch-tesseract_pc_in    Mon Jan 
 7 20:27:49 2019
@@ -0,0 +1,24 @@
+$OpenBSD: patch-tesseract_pc_in,v 1.1 2019/01/07 16:38:19 sthen Exp $
+
+Add -I/usr/local/include to include path. Typical users include headers
+with "#include <tesseract/XX.h>". Patch should be removed for 4.0.0 as fixed
+upstream by changing @includedir@ definition.
+
+Index: tesseract.pc.in
+--- tesseract.pc.in.orig
++++ tesseract.pc.in
+@@ -4,7 +4,7 @@ bindir=@bindir@
+ datarootdir = @datarootdir@
+ datadir=@datadir@
+ libdir=@libdir@
+-includedir=@includedir@
++includedir=@prefix@/include
+
+ Name: @PACKAGE_NAME@
+ Description: An OCR Engine that was developed at HP Labs between 1985 and 
1995... and now at Google.
+@@ -13,4 +13,4 @@ Version: @VERSION@
+ Requires.private: lept
+ Libs: -L${libdir} -ltesseract
+ Libs.private: -lpthread @OPENCL_LDFLAGS@
+-Cflags: -I${includedir}
++Cflags: -I${includedir} -I${includedir}/tesseract

Reply via email to