genode/libports/lib/mk/mupdf.mk
Norman Feske 326a2483f0 Add openjpeg, jbig2dec, and mupdf to libports
MuPDF is a fast and versatile PDF rendering library with only a few
dependencies. It depends on openjpeg (JPEG2000 codec) and jbig2dec (b/w
image compression library). Therefore, this patch comprises the ports of
these libraries as well. All libraries compile well in the Genode build
system but are not tested yet.
2012-01-02 17:09:18 +01:00

17 lines
604 B
Makefile

MUPDF = mupdf-0.9
MUPDF_DIR = $(REP_DIR)/contrib/$(MUPDF)
LIBS += libc jpeg zlib jbig2dec openjpeg freetype
INC_DIR += $(addprefix $(MUPDF_DIR)/,fitz pdf xps)
SRC_C = $(addprefix fitz/,$(notdir $(wildcard $(MUPDF_DIR)/fitz/*.c)))
SRC_C += $(addprefix pdf/, $(notdir $(wildcard $(MUPDF_DIR)/pdf/*.c)))
SRC_C += $(addprefix xps/, $(notdir $(wildcard $(MUPDF_DIR)/xps/*.c)))
SRC_C += $(addprefix draw/,$(notdir $(wildcard $(MUPDF_DIR)/draw/*.c)))
# disable warning noise for contrib code
CC_WARN += -Wall -Wno-uninitialized -Wno-unused-but-set-variable
vpath %.c $(MUPDF_DIR)
SHARED_LIB = yes