summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/jbig2enc/files/local_to_gentoo_makefile.diff')
-rw-r--r--media-libs/jbig2enc/files/local_to_gentoo_makefile.diff30
1 files changed, 30 insertions, 0 deletions
diff --git a/media-libs/jbig2enc/files/local_to_gentoo_makefile.diff b/media-libs/jbig2enc/files/local_to_gentoo_makefile.diff
new file mode 100644
index 0000000..3309d66
--- /dev/null
+++ b/media-libs/jbig2enc/files/local_to_gentoo_makefile.diff
@@ -0,0 +1,30 @@
+--- Makefile.old 2011-02-09 15:16:03.057306516 +0100
++++ Makefile 2011-02-09 15:24:47.773973182 +0100
+@@ -1,21 +1,21 @@
+ CC=g++
+-LEPTONICA=../leptonlib-1.67
++LEPTONICA=/usr/include/leptonica
+ # 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}
++LOCALFLAGS=-I${LEPTONICA} -Wall -I/usr/include -L/usr/lib
+
+ jbig2: libjbig2enc.a jbig2.cc
+- $(CC) -o jbig2 jbig2.cc -L. -ljbig2enc ${LEPTONICA}/src/.libs/liblept.a $(CFLAGS) -lpng -ljpeg -ltiff -lm -lz
++ $(CC) -o jbig2 jbig2.cc -L. -ljbig2enc $(LOCALFLAGS) $(LDFLAGS) -llept -lpng -ljpeg -ltiff -lm -lz
+
+ 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)
++ $(CC) -c jbig2enc.cc $(LOCALFLAGS) $(CFLAGS)
+ jbig2arith.o: jbig2arith.cc jbig2arith.h
+- $(CC) -c jbig2arith.cc $(CFLAGS)
++ $(CC) -c jbig2arith.cc $(LOCALFLAGS) $(CFLAGS)
+ jbig2sym.o: jbig2sym.cc jbig2arith.h
+- $(CC) -c jbig2sym.cc -DUSE_EXT $(CFLAGS)
++ $(CC) -c jbig2sym.cc -DUSE_EXT $(LOCALFLAGS) $(CFLAGS)
+
+ clean:
+ rm -f *.o jbig2 libjbig2enc.a