mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-06 02:59:54 +00:00
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.
17 lines
558 B
Makefile
17 lines
558 B
Makefile
JBIG2DEC = jbig2dec-0.11
|
|
JBIG2DEC_DIR = $(REP_DIR)/contrib/$(JBIG2DEC)
|
|
LIBS += libc libpng zlib
|
|
INC_DIR += $(JBIG2DEC_DIR) $(REP_DIR)/include/jbig2dec
|
|
|
|
# incorporate all '*.c' files except those that are not part of the library
|
|
FILTER_OUT = jbig2dec.c snprintf.c
|
|
SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(JBIG2DEC_DIR)/*.c)))
|
|
|
|
# definitions normally provided by a config.h file
|
|
CC_OPT += -DHAVE_STRING_H -DHAVE_STDINT_H
|
|
|
|
# disable warning noise for contrib code
|
|
CC_WARN = -Wno-deprecated-declarations
|
|
|
|
vpath %.c $(JBIG2DEC_DIR)
|