mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 08:21:08 +00:00
326a2483f0
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.
30 lines
782 B
Makefile
30 lines
782 B
Makefile
JBIG2DEC = jbig2dec-0.11
|
|
JBIG2DEC_TGZ = $(JBIG2DEC).tar.gz
|
|
JBIG2DEC_URL = http://ghostscript.com/~giles/jbig2/jbig2dec/$(JBIG2DEC_TGZ)
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(JBIG2DEC)
|
|
|
|
prepare-jbig2dec: $(CONTRIB_DIR)/$(JBIG2DEC) include/jbig2dec/jbig2.h
|
|
|
|
$(CONTRIB_DIR)/$(JBIG2DEC): clean-jbig2dec
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(DOWNLOAD_DIR)/$(JBIG2DEC_TGZ):
|
|
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(JBIG2DEC_URL) && touch $@
|
|
|
|
$(CONTRIB_DIR)/$(JBIG2DEC): $(DOWNLOAD_DIR)/$(JBIG2DEC_TGZ)
|
|
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@
|
|
|
|
include/jbig2dec/jbig2.h:
|
|
$(VERBOSE)mkdir -p $(dir $@)
|
|
$(VERBOSE)ln -s ../../$(CONTRIB_DIR)/$(JBIG2DEC)/jbig2.h $@
|
|
|
|
clean-jbig2dec:
|
|
$(VERBOSE)rm -rf include/jbig2dec
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(JBIG2DEC)
|