summaryrefslogtreecommitdiff
path: root/Makethird
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-10-16 15:03:14 +0100
committerRobin Watts <robin.watts@artifex.com>2013-11-28 00:41:08 +0000
commit81a97d655e373d7371e70f6a2051a41f606c62dc (patch)
tree49b636c7a8b30e1817f8d353a139e1fd18303a5b /Makethird
parent9c910781c2dd9b7b49fedefc9f140d0c3b1a3896 (diff)
downloadmupdf-81a97d655e373d7371e70f6a2051a41f606c62dc.tar.xz
Update mupdf to use latest openjpeg pulled from ghostpdl.
The OpenJPEG in gs is v2, with various patches for fixes. These are in the process of being passed upstream. We now automatically pull the openjpeg tree out of GhostPDL and put it in as one particular branch in the thirdparty/openjpeg.git repo. Change to track this in MuPDF. This is in keeping with what we have been doing with the jbig2dec repo for a while now.
Diffstat (limited to 'Makethird')
-rw-r--r--Makethird8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makethird b/Makethird
index d9730227..d6db3b40 100644
--- a/Makethird
+++ b/Makethird
@@ -9,7 +9,7 @@
FREETYPE_DIR := thirdparty/freetype
JBIG2DEC_DIR := thirdparty/jbig2dec
JPEG_DIR := thirdparty/jpeg
-OPENJPEG_DIR := thirdparty/openjpeg
+OPENJPEG_DIR := thirdparty/openjpeg/libopenjpeg
OPENSSL_DIR := thirdparty/openssl
ZLIB_DIR := thirdparty/zlib
CURL_DIR := thirdparty/curl
@@ -202,7 +202,7 @@ endif
# --- OpenJPEG ---
-ifneq "$(wildcard $(OPENJPEG_DIR)/README)" ""
+ifneq "$(wildcard $(OPENJPEG_DIR)/CMakeLists.txt)" ""
OPENJPEG_LIB := $(OUT)/libopenjpeg.a
OPENJPEG_OUT := $(OUT)/openjpeg
@@ -235,10 +235,10 @@ OPENJPEG_SRC := \
$(OPENJPEG_LIB): $(addprefix $(OPENJPEG_OUT)/, $(OPENJPEG_SRC:%.c=%.o))
$(OPENJPEG_OUT):
$(MKDIR_CMD)
-$(OPENJPEG_OUT)/%.o: $(OPENJPEG_DIR)/src/lib/openjp2/%.c | $(OPENJPEG_OUT)
+$(OPENJPEG_OUT)/%.o: $(OPENJPEG_DIR)/%.c | $(OPENJPEG_OUT)
$(CC_CMD) -DOPJ_STATIC -DOPJ_HAVE_STDINT_H
-OPENJPEG_CFLAGS += -I$(OPENJPEG_DIR)/src/lib/openjp2
+OPENJPEG_CFLAGS += -I$(OPENJPEG_DIR)
else
OPENJPEG_CFLAGS := $(SYS_OPENJPEG_CFLAGS)
OPENJPEG_LIBS := $(SYS_OPENJPEG_LIBS)