head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.78 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.76 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.74 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.72 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.70 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.68 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.66 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.64 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.62 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.60 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.58 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.56 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.54 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.52 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.50 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.48 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.46 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.44 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.42 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.40 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.38 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.36 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.34 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.30 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.10 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.32 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.28 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.26 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.24 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.22 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.20 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.18 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.16 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.14 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.12 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.8 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.6 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.4 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.2 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.4.0.56 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.54 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.52 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.50 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.48 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.46 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.44 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.42 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.40 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.38 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.36 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.34 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.32 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.30 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.28 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.26 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.24 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.22 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.20 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.18 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.16 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.14 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.12 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.10 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.8 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.6 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.4 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.2 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.3.0.14 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.12 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.10 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.8 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.6 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.4 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.2 pkgsrc-2008Q1:1.2.0.20 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.18 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.16 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.14 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.12 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.10 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.8 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.6 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.4 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.2 pkgsrc-2005Q4-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2016.07.24.23.59.55; author mef; state Exp; branches; next 1.4; commitid Gh0T88VIgLrykDfz; 1.4 date 2009.07.21.20.23.55; author brook; state Exp; branches; next 1.3; 1.3 date 2008.06.20.01.09.22; author joerg; state Exp; branches; next 1.2; 1.2 date 2005.10.25.02.06.57; author wiz; state Exp; branches; next 1.1; 1.1 date 2005.10.16.20.20.41; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.10.16.20.20.41; author wiz; state Exp; branches; next ; desc @@ 1.5 log @Updated graphics/gocr to 0.48 ----------------------------- History: (Changes,ChangeLog) 0.48 Jul09 fix buffer overflow introduced in 0.46 for filenames add codabar barcode fix bug, removing melted serifs add patch by Chris Lee, i25 barcode recognition + modifications fix some false positive numbers "34" (video, gas meter) fix problems with 2zZ4 for 10x10 screen font better debug output for :;,. remove examples, doc and libs part from configure (see below) remove doc and examples from the (make install) part to reduce dependencies (gs and transfig is not needed for rpm/ebuild) gocr only may depend from netpbm, but can live without too this will help to install gocr on "exotic" (nonlinux) platforms fix gentoo app-text/gocr Bug 243250 src/Makefile: $(CC) $(LDFLAGS) ... @ text @$NetBSD: patch-ab,v 1.4 2009/07/21 20:23:55 brook Exp $ --- src/Makefile.in.orig 2009-04-09 18:06:53.000000000 +0900 +++ src/Makefile.in 2016-07-25 08:47:23.000000000 +0900 @@@@ -37,6 +37,8 @@@@ LIBOBJS=pgm2asc.o \ # these two lines are for cross-compiling, not tested #srcdir = @@srcdir@@ #VPATH = @@srcdir@@ +prefix = @@prefix@@ +exec_prefix = @@exec_prefix@@ bindir = @@bindir@@ # lib removed for simplification #libdir = @@libdir@@ @@@@ -101,10 +103,7 @@@@ $(LIBOBJS): Makefile # PHONY = don't look at file clean, -rm = start rm and ignore errors .PHONY : clean proper install uninstall install: all - #$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) - $(INSTALL) -d $(DESTDIR)$(bindir) $(INSTALL) ../bin/$(PROGRAM) $(DESTDIR)$(bindir) - $(INSTALL) ../bin/gocr.tcl $(DESTDIR)$(bindir) # better X11/bin? if test -f lib$(PGMASCLIB).a; then\ $(INSTALL) lib$(PGMASCLIB).a $(DESTDIR)$(libdir);\ $(INSTALL) lib$(PGMASCLIB).@@PACKAGE_VERSION@@.so $(DESTDIR)$(libdir);\ @ 1.4 log @Update to gocr v0.47. See the README file for all the changes since v0.40. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2008/06/20 01:09:22 joerg Exp $ d3 3 a5 3 --- src/Makefile.in.orig 2005-02-28 14:40:39.000000000 +0000 +++ src/Makefile.in @@@@ -37,6 +37,8 @@@@ d14 1 a14 10 @@@@ -78,7 +80,7 @@@@ $(PROGRAM): $(LIBOBJS) gocr.o # make it conform to ld --as-needed #$(CC) -o $@@ $(LDFLAGS) gocr.o ./lib$(PGMASCLIB).a $(LIBS) - $(CC) -o $@@ gocr.o $(LIBOBJS) $(LIBS) + $(CC) -o $@@ $(LDFLAGS) gocr.o $(LIBOBJS) $(LIBS) if test -r $(PROGRAM); then cp $@@ ../bin; fi libs: lib$(PGMASCLIB).a lib$(PGMASCLIB).@@PACKAGE_VERSION@@.so @@@@ -97,10 +99,7 @@@@ @ 1.3 log @Add DESTDIR support. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -30,6 +30,8 @@@@ LIBOBJS=pgm2asc.o \ d12 12 a23 3 libdir = @@libdir@@ includedir = @@includedir@@ @@@@ -67,9 +69,7 @@@@ $(LIBOBJS): Makefile d25 1 a25 1 .PHONY : clean proper install d27 2 a28 1 - $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) d31 3 a33 3 $(INSTALL) $(LIBPGMASCLIB) $(DESTDIR)$(libdir) $(INSTALL) $(INCLUDEFILES) $(DESTDIR)$(includedir) @ 1.2 log @Update to 0.40. Add a tk option to install an additional tcl/tk frontend. 0.40 update PNM file reader to maxval > 255 (make rpm) updated barcode-patch UPC_addon by Michael van Rooyen CAPITAL_LETTER_A_WITH_OGONEK added no "(PICTURE)" output for UTF8+ASCII (better for Mobile OCR project) smooth_borders() bug fixed and reworked 5x7 and prop10 font adaptions objects now detected by flood-fill algorithm (better?) XML-output changed changed auto dust detection (not final) 0.39 XML output added (subject of change, suggestions are welcome) netpbm-link-error fixed in gocr.c and configure.in: gocr.c: changed to "config.h" configure-option --with-netpbm=PATH and --without-netpbm added update configure.in according to autoconf 2.57 wchar_h miss-configuration fixed in pgm2asc.c fix compiler warnings char filter accepts abbreviations now, like "0-9A-F" (but slow) update READMEde.txt output barcode tags (also improved recognition) fix pnm.c for files like example.eps.pbm fix detect.c for barcodes fix ocr0n.c 0<->8g 0.38 move UTF/HTML/TeX decoding to getTextLine, return (char *) now out_format HTML step towards detailed XML output correct line detection for footnotes (detect.c) "y" now seen as vowel (pgm2asc.c), I susbtituted by l é-detection, á-output fixed default dust_size is -1 now (auto detection = mean_size/10) char filter added ex: -C 0123456789ABCDEF - recognize only hexcodes man page updated (hopefully correct syntax) database bug fixed (small fonts, example by Chris) several bugs fixed by W. Webber (thanks) speed improved by 3rd-pass matrix filter in pixel() (pixel.c) (code from W. Webber) bug in remove_dust (remove.c) fixed for fonts bigger than 20x40 smooth_borders() changed (b/w-scans) bug in O0-detection fixed @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 2005/10/16 20:20:41 wiz Exp $ d3 1 a3 1 --- src/Makefile.in.orig 2005-02-28 15:40:39.000000000 +0100 d5 10 a14 1 @@@@ -67,9 +67,7 @@@@ $(LIBOBJS): Makefile @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 2003/12/09 13:53:38 sketch Exp $ d3 3 a5 3 --- src/Makefile.in.orig 2003-12-09 13:41:53.060784000 +0000 +++ src/Makefile.in 2003-12-09 13:42:15.130080000 +0000 @@@@ -66,7 +66,6 @@@@ d11 1 d14 1 @ 1.1.1.1 log @Re-import textproc/gocr as graphics/gocr (better fit). @ text @@