From 4b5c33d4cd3a53dd00fad400937e1bf7cf7a2182 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Tue, 25 Sep 2012 10:32:39 +0100 Subject: [PATCH] Optimize building djvulibre. 1. Don't build xmltools in the emulator 2. Remove duplicate --disable-desktopfiles 3. Don't build LFS support. The largest DjVu file I have ever published was a highres facsimile edition of the London Walton Polyglot (1657) which was a "mere" 1GB in size and I don't think anyone produced anything bigger. Besides, storing DjVu files >2GB in size (even if they existed, which I doubt) on a Kindle with only 3GB total storage space is _exceedingly_ unlikely. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7a5622ad5..a8e789017 100644 --- a/Makefile +++ b/Makefile @@ -185,9 +185,9 @@ $(MUPDFLIBS) $(THIRDPARTYLIBS): $(MUPDFDIR)/cmapdump.host $(MUPDFDIR)/fontdump.h $(DJVULIBS): -mkdir $(DJVUDIR)/build ifdef EMULATE_READER - cd $(DJVUDIR)/build && ../configure --disable-desktopfiles --disable-shared --enable-static + cd $(DJVUDIR)/build && ../configure --disable-desktopfiles --disable-shared --enable-static --disable-xmltools --disable-largefiles else - cd $(DJVUDIR)/build && ../configure --disable-desktopfiles --disable-shared --enable-static --host=$(HOST) --disable-xmltools --disable-desktopfiles + cd $(DJVUDIR)/build && ../configure --disable-desktopfiles --disable-shared --enable-static --host=$(HOST) --disable-xmltools --disable-largefiles endif make -C $(DJVUDIR)/build