{ "name": "Gocr", "description": "Optical Character Recognition (OCR), converts images back to text", "url": "https://wasd.urz.uni-magdeburg.de/jschulen/ocr/gocr-0.52.tar.gz", "mirror": null, "homepage": "https://wasd.urz.uni-magdeburg.de/jschulen/ocr/", "depends": [ { "depend": "jpeg", "build-depend": false }, { "depend": "netpbm", "build-depend": false } ], "resource": [], "conflicts": [], "patches": [ { "url": null, "data": [ "diff --git a/src/Makefile.in b/src/Makefile.in\n", "index bf4181f..883fec2\n", "--- a/src/Makefile.in\n", "+++ b/src/Makefile.in\n", "@@ -10,7 +10,7 @@ PROGRAM = gocr$(EXEEXT)\n", " PGMASCLIB = Pgm2asc\n", " #LIBPGMASCLIB = lib$(PGMASCLIB).a\n", " # ToDo: need a better pgm2asc.h for lib users \n", "-#INCLUDEFILES = gocr.h\n", "+INCLUDEFILES = pgm2asc.h output.h list.h unicode.h gocr.h pnm.h\n", " # avoid german compiler messages\n", " LANG=C\n", " \n", "@@ -39,8 +39,8 @@ LIBOBJS=pgm2asc.o \\\n", " #VPATH = @srcdir@\n", " bindir = @bindir@\n", " # lib removed for simplification\n", "-#libdir = @libdir@\n", "-#includedir = @includedir@\n", "+libdir = @libdir@\n", "+includedir = /include/gocr\n", " \n", " CC=@CC@\n", " # lib removed for simplification\n", "@@ -89,7 +89,8 @@ $(PROGRAM): $(LIBOBJS) gocr.o\n", " \t$(CC) -o $@ $(LDFLAGS) gocr.o $(LIBOBJS) $(LIBS)\n", " \t# if test -r $(PROGRAM); then cp $@ ../bin; fi\n", " \n", "-libs: lib$(PGMASCLIB).a lib$(PGMASCLIB).@PACKAGE_VERSION@.so\n", "+#libs: lib$(PGMASCLIB).a lib$(PGMASCLIB).@PACKAGE_VERSION@.so\n", "+libs: lib$(PGMASCLIB).a\n", " \n", " #lib$(PGMASCLIB).@PACKAGE_VERSION@.so: $(LIBOBJS)\n", " #\t$(CC) -fPIC -shared -Wl,-h$@ -o $@ $(LIBOBJS)\n", "@@ -109,17 +110,17 @@ $(LIBOBJS): Makefile\n", " # PHONY = don't look at file clean, -rm = start rm and ignore errors\n", " .PHONY : clean proper install uninstall\n", " install: all\n", "-\t#$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)\n", "-\t$(INSTALL) -d $(DESTDIR)$(bindir)\n", "+\t$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)\n", "+\t#$(INSTALL) -d $(DESTDIR)$(bindir)\n", " \t$(INSTALL) $(PROGRAM) $(DESTDIR)$(bindir)\n", " \t$(INSTALL) ../bin/gocr.tcl $(DESTDIR)$(bindir) # better X11/bin?\n", " \tif test -f lib$(PGMASCLIB).a; then\\\n", " \t $(INSTALL) lib$(PGMASCLIB).a $(DESTDIR)$(libdir);\\\n", " \t $(INSTALL) lib$(PGMASCLIB).@PACKAGE_VERSION@.so $(DESTDIR)$(libdir);\\\n", " \t $(INSTALL) lib$(PGMASCLIB).so $(DESTDIR)$(libdir);\\\n", "+\t $(INSTALL) $(INCLUDEFILES) $(DESTDIR)$(includedir);\\\n", "+\t $(INSTALL) ../include/config.h $(DESTDIR)$(includedir);\\\n", " \tfi\n", "-\t# ToDo: not sure that the link will be installed correctly\n", "-\t#$(INSTALL) $(INCLUDEFILES) $(DESTDIR)$(includedir)\n", " \n", " # directories are not removed\n", " uninstall:\n", "@@ -129,7 +130,8 @@ uninstall:\n", " \t-rm -f $(DESTDIR)$(libdir)/lib$(PGMASCLIB).@PACKAGE_VERSION@.so\n", " \t-rm -f $(DESTDIR)$(libdir)/lib$(PGMASCLIB).so\n", " \t# ToDo: set to old version.so ?\n", "-\t#for X in $(INCLUDEFILES); do rm -f $(DESTDIR)$(includedir)/$$X; done\n", "+\tfor X in $(INCLUDEFILES); do rm -f $(DESTDIR)$(includedir)/$$X; done\n", "+\t-rm -f $(DESTDIR)$(includedir)/config.h\n", " \n", " clean:\n", " \t-rm -f *.o *~\n" ] } ], "install": [ "system \"./configure\", \"--disable-debug\",", "\"--disable-dependency-tracking\",", "\"--prefix=#{prefix}\"", "inreplace \"man/Makefile\" do |s|", "s.change_make_var! \"mandir\", \"/share/man\"" ], "version": "0.52", "file": "gocr.rb" }