SOURCES: jbig2enc-lept.patch (NEW) - use system leptonlib
qboosh
qboosh at pld-linux.org
Sun Aug 27 13:02:04 CEST 2006
Author: qboosh Date: Sun Aug 27 11:02:04 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use system leptonlib
---- Files affected:
SOURCES:
jbig2enc-lept.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/jbig2enc-lept.patch
diff -u /dev/null SOURCES/jbig2enc-lept.patch:1.1
--- /dev/null Sun Aug 27 13:02:04 2006
+++ SOURCES/jbig2enc-lept.patch Sun Aug 27 13:01:59 2006
@@ -0,0 +1,56 @@
+--- jbig2enc-0.23/Makefile.orig 2006-08-11 23:07:18.000000000 +0200
++++ jbig2enc-0.23/Makefile 2006-08-27 03:10:14.063467500 +0200
+@@ -1,24 +1,25 @@
+-CC=g++
++CC=gcc
++CXX=g++
+ LEPTONICA=../leptonlib-1.37
+ # For example, a fink MacOSX install:
+ # EXTRA=-I/sw/include/ -I/sw/include/libpng -I/sw/include/libjpeg -L/sw/lib
+-CFLAGS=-I${LEPTONICA}/src -Wall -I/usr/include -L/usr/lib -O3 ${EXTRA}
++CFLAGS=-I/usr/include/lept -Wall -I/usr/include ${EXTRA}
+
+ jbig2: libjbig2enc.a jbig2.cc
+- $(CC) -o jbig2 jbig2.cc -L. -ljbig2enc -llept -L${LEPTONICA}/lib/nodebug $(CFLAGS) -lpng -ljpeg -ltiff -lm
++ $(CXX) -o jbig2 jbig2.cc -L. -ljbig2enc -llept $(CFLAGS) -lm
+
+ libjbig2enc.a: jbig2enc.o jbig2arith.o jbig2sym.o
+ ar -rcv libjbig2enc.a jbig2enc.o jbig2arith.o jbig2sym.o
+
+ jbig2enc.o: jbig2enc.cc jbig2arith.h jbig2sym.h jbig2structs.h jbig2segments.h
+- $(CC) -c jbig2enc.cc $(CFLAGS)
++ $(CXX) -c jbig2enc.cc $(CFLAGS)
+ jbig2arith.o: jbig2arith.cc jbig2arith.h
+- $(CC) -c jbig2arith.cc $(CFLAGS)
++ $(CXX) -c jbig2arith.cc $(CFLAGS)
+ jbig2sym.o: jbig2sym.cc jbig2arith.h
+- $(CC) -c jbig2sym.cc -DUSE_EXT $(CFLAGS)
++ $(CXX) -c jbig2sym.cc -DUSE_EXT $(CFLAGS)
+
+ delta: delta.c
+- $(CC) -o delta delta.c $(CFLAGS) -llept -L${LEPTONICA}/lib/nodebug -lpng -ljpeg -ltiff -lm
++ $(CC) -o delta delta.c $(CFLAGS) -llept -lm
+
+ clean:
+ rm -f *.o jbig2 libjbig2enc.a
+--- jbig2enc-0.23/jbig2enc.cc.orig 2006-07-08 05:31:35.000000000 +0200
++++ jbig2enc-0.23/jbig2enc.cc 2006-08-27 10:47:09.568829500 +0200
+@@ -163,10 +163,14 @@
+ ctx->page_height.push_back(bw->h);
+
+ if (ctx->refinement) {
+- BOXA *boxes = boxaCopy(ctx->classer->boxas, L_CLONE);
+- ctx->boxes.push_back(boxes);
+- PIXA *comps = pixaCopy(ctx->classer->pixas, L_CLONE);
+- ctx->comps.push_back(comps);
++ BOXA *boxes;
++ PIXA *comps;
++ if (!jbGetComponents(bw, ctx->classer->components,
++ ctx->classer->maxwidth, ctx->classer->maxheight,
++ &boxes, &comps)) {
++ ctx->boxes.push_back(boxes);
++ ctx->comps.push_back(comps);
++ }
+ }
+
+ pixDestroy(&bw);
================================================================
More information about the pld-cvs-commit
mailing list