From 50a76c09a01d43f4784ae4b1ad7172b526a5bdf1 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 3f3b5d9db..8f29d28b5 100644 --- a/Makefile +++ b/Makefile @@ -189,9 +189,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