From ea4be9f304bcc4bed1df9d64c59428b5cbf156c7 Mon Sep 17 00:00:00 2001 From: malc Date: Fri, 2 Jul 2010 07:09:49 +0400 Subject: [PATCH] Some functionality still requires MuPDF patched by SumatraPDF Precise link navigation. --- BUILDING | 12 +++++++++--- buildall.sh | 20 +++++++++++++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/BUILDING b/BUILDING index cfec142..104e056 100644 --- a/BUILDING +++ b/BUILDING @@ -3,7 +3,12 @@ to be built and installed to use llpp, MuPDF's README[2] describes how to build it and lists its dependencies. Snapshots of MuPDF itself can be found here[3] -llpp also depends on OCaml[4] and lablGL[5], having a C compiler +It should be noted that vanilla MuPDF does not handle internal links +precisely, one can use patched MuPDF from SumatraPDF[4], but MuPDF +from SumatraPDF has problems of it's own (wrong font substitutions), +user is free to pick his poison. + +llpp also depends on OCaml[5] and lablGL[6], having a C compiler wouldn't hurt either. To build llpp "the easy way" one can invoke `sh buildall.sh' which @@ -23,5 +28,6 @@ $ ./llpp /path/to/some.pdf [1] http://www.mupdf.com [2] http://mupdf.com/repos/mupdf/README [3] http://mupdf.com/download/snapshots/ -[4] http://caml.inria.fr/ -[5] http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html +[4] http://blog.kowalczyk.info/software/sumatrapdf/index.html +[5] http://caml.inria.fr/ +[6] http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html diff --git a/buildall.sh b/buildall.sh index 1755e55..a03aff7 100644 --- a/buildall.sh +++ b/buildall.sh @@ -1,6 +1,8 @@ # builds "hard" prerequisites and llpp set -e +use_sumatrapdf_patched_mupdf=true + mkdir -p 3rdp cd 3rdp @@ -10,12 +12,28 @@ openjpeg=http://openjpeg.googlecode.com/svn/trunk/ jbig2dec=git://git.ghostscript.com/jbig2dec.git lablgl=:pserver:anoncvs@camlcvs.inria.fr:/caml mupdf=http://mupdf.com/download/snapshots/mupdf-r1300.tar.gz +sumatrapdf=http://sumatrapdf.googlecode.com/svn/trunk test -d openjpeg || svn checkout $openjpeg openjpeg test -d jbig2dec || git clone $jbig2dec jbig2dec -test -d mupdf || (wget $mupdf && tar xf $(basename $mupdf)) test -d lablgl || cvs -d $lablgl co -d lablgl bazar-ocaml/lablGL +if ! test -d mupdf; then + if $use_sumatrapdf_patched_mupdf; then + svn checkout $sumatrapdf/mupdf mupdf && grep + case $(uname -m) in + ppc*|sparc*|arm*) + mv mupdf/Makerules aaa && grep -vi "x86" aaa > mupdf/Makerules + rm aaa + ;; + *) + ;; + esac + else + wget $mupdf && tar xf $(basename $mupdf) + fi +fi + mkdir -p $root/bin mkdir -p $root/lib mkdir -p $root/include -- 2.11.4.GIT