From ae780a543b2ac57a29aa701a2c8e5277ca6aa8f9 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Sun, 15 Jul 2012 02:19:10 +0800 Subject: [PATCH] check mupdf's thirdparty libs' version --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b7098d4b3..bc1b6d9ce 100644 --- a/Makefile +++ b/Makefile @@ -143,7 +143,11 @@ fetchthirdparty: cd kpvcrlib/crengine/crengine/src && \ patch -N -p0 < ../../../lvrend_node_type_face.patch || true unzip mupdf-thirdparty.zip -d mupdf - # dirty patch in MuPDF's thirdparty liby for CREngine + # check mupdf's thirdparty libs' version, if not matched, remove the old one + # run make fetchthirdparty again to get the latest thirdparty libs. + test -d $(FREETYPEDIR) || ( echo "error: mupdf's thirdparty libs' version not match" ; \ + rm -rf mupdf-thirdparty.zip ; exit 1 ) + # dirty patch in MuPDF's thirdparty lib for CREngine cd mupdf/thirdparty/jpeg-*/ && \ patch -N -p0 < ../../../kpvcrlib/jpeg_compress_struct_size.patch &&\ patch -N -p0 < ../../../kpvcrlib/jpeg_decompress_struct_size.patch