Recipe for MuPDF
v2 cover Recipe for MuPDF
As there's no more comments on original patch series[1], guess it's time to send v2. Do whatever you like with these patches :-)
[1] http://patchwork.openembedded.org/bundle/mad_soft/mupdf-0.6-v1/
Changelog v1 => v2:
* removed autotools_stage_all from openjpeg and jbig2dec recipes, as suggested by Khem Raj
* used upstream patch fixing endianness issues on 16-bit displays instead of custom hack (upstream has been very kind to fix this bug so quickly)
* more verbose comment about why we need -O2
Dmitry Artamonow (3):
openjpeg-1.3: new recipe
jbig2dec-0.11: new recipe
mupdf-0.6: new recipe
recipes/jpeg/jbig2dec_0.11.bb | 15 +++ recipes/jpeg/openjpeg-1.3/fix_installdir.patch | 19 ++++ recipes/jpeg/openjpeg_1.3.bb | 20 +++++ recipes/mupdf/mupdf-0.6/Makerules | 8 ++ recipes/mupdf/mupdf-0.6/mupdf_fix_endianness.patch | 90 ++++++++++++++++++++ recipes/mupdf/mupdf_0.6.bb | 60 +++++++++++++ 6 files changed, 212 insertions(+), 0 deletions(-) create mode 100644 recipes/jpeg/jbig2dec_0.11.bb create mode 100644 recipes/jpeg/openjpeg-1.3/fix_installdir.patch create mode 100644 recipes/jpeg/openjpeg_1.3.bb create mode 100644 recipes/mupdf/mupdf-0.6/Makerules create mode 100644 recipes/mupdf/mupdf-0.6/mupdf_fix_endianness.patch create mode 100644 recipes/mupdf/mupdf_0.6.bb
PATCH v2 1/3 openjpeg-1.3: new recipe
The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
--- recipes/jpeg/openjpeg-1.3/fix_installdir.patch | 19 +++++++++++++++++++ recipes/jpeg/openjpeg_1.3.bb | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 recipes/jpeg/openjpeg-1.3/fix_installdir.patch create mode 100644 recipes/jpeg/openjpeg_1.3.bb
recipes/jpeg/openjpeg-1.3/fix_installdir.patch new file +19 -0
@@ -0,0 +1,19 @@ +* status: pending +* origin: + http://groups.google.com/group/openjpeg/browse_thread/thread/4cd7b53fbaab2822 +* comment: slightly modified patch by Patrick Reynolds, borrowed from + the thread above. Seems that it's not in upstream yet. + Had to modify header location from /usr/include/openjpeg/openjpeg.h to + /usr/include/openjpeg.h , as it's the only one header file anyway and + most of its users expect #include <openjpeg.h> to work. + +Index: libopenjpeg/CMakeLists.txt +=================================================================== +--- a/libopenjpeg/CMakeLists.txt (revision 541) ++++ b/libopenjpeg/CMakeLists.txt (working copy) +@@ -41,4 +41,4 @@ + + # Install includes files + INSTALL(FILES openjpeg.h +- DESTINATION ${INCLUDE_INSTALL_DIR}/openjpeg) ++ DESTINATION include)
recipes/jpeg/openjpeg_1.3.bb new file +20 -0
@@ -0,0 +1,20 @@ +DESCRIPTION = "Open-source JPEG 2000 codec written in C language" +HOMEPAGE = "http://www.openjpeg.org" +SECTION = "libs" +LICENSE = "BSD" +PR = "r0" + +SRC_URI = "http://openjpeg.googlecode.com/files/openjpeg_v1_3.tar.gz \ + file://fix_installdir.patch" + +S = "${WORKDIR}/OpenJPEG_v1_3" + +inherit cmake + +EXTRA_OECMAKE="-DBUILD_SHARED_LIBS:BOOL=ON" + +PACKAGES =+ "openjpeg-tools " +FILES_openjpeg-tools = "${bindir}/*" + +SRC_URI[md5sum] = "f9a3ccfa91ac34b589e9bf7577ce8ff9" +SRC_URI[sha256sum] = "3bca2e1e040f9dcbbcb1e0627f17a76eeb95e153bf663d082070c044a21202bd"
Signature · 1 line
1.7.1
PATCH v2 2/3 jbig2dec-0.11: new recipe
In reply to Dmitry Artamonowjbig2dec is a decoder implementation of the JBIG2 image compression format. JBIG2 is designed for lossy or lossless encoding of monochrome images at moderately high resolution, in particular scanned paper documents.
--- recipes/jpeg/jbig2dec_0.11.bb | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 recipes/jpeg/jbig2dec_0.11.bb
recipes/jpeg/jbig2dec_0.11.bb new file +15 -0
@@ -0,0 +1,15 @@ +DESCRIPTION = "Decoder implementation of the JBIG2 image compression format" +HOMEPAGE = "http://jbig2dec.sourceforge.net/" +SECTION = "libs" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "${SOURCEFORGE_MIRROR}/jbig2dec/${PN}-${PV}.tar.gz" + +inherit autotools + +PACKAGES =+ "jbig2dec-tools " +FILES_jbig2dec-tools = "${bindir}/*" + +SRC_URI[md5sum] = "1f61e144852c86563fee6e5ddced63f1" +SRC_URI[sha256sum] = "7e2d8330b36f2765da22043d174827bee0f30db8d78c330904f363275c7dd0b9"
Signature · 1 line
1.7.1
PATCH v2 3/3 mupdf-0.6: new recipe
In reply to Dmitry ArtamonowMuPDF is a slim and fast PDF viewer/toolkit.
--- recipes/mupdf/mupdf-0.6/Makerules | 8 ++ recipes/mupdf/mupdf-0.6/mupdf_fix_endianness.patch | 90 ++++++++++++++++++++ recipes/mupdf/mupdf_0.6.bb | 60 +++++++++++++ 3 files changed, 158 insertions(+), 0 deletions(-) create mode 100644 recipes/mupdf/mupdf-0.6/Makerules create mode 100644 recipes/mupdf/mupdf-0.6/mupdf_fix_endianness.patch create mode 100644 recipes/mupdf/mupdf_0.6.bb
recipes/mupdf/mupdf-0.6/Makerules new file +8 -0
@@ -0,0 +1,8 @@ +# Configuration for the Makefile +LIBS := -ljbig2dec -lopenjpeg -ljpeg -lz -lm +CFLAGS := -Wall --std=gnu99 -Ifitz -Imupdf $(THIRD_INCS) + +CFLAGS += `pkg-config --cflags freetype2` +LDFLAGS += `pkg-config --libs freetype2` +X11LIBS = -lX11 -lXext +PDFVIEW_EXE = $(X11VIEW_EXE)
recipes/mupdf/mupdf-0.6/mupdf_fix_endianness.patch new file +90 -0
90 lines not on this page · raw message
recipes/mupdf/mupdf_0.6.bb new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
1.7.1
Quoted 5 lines · Dmitry Artamonow
As there's no more comments on original patch series[1], guess it's time to send v2. Do whatever you like with these patches :-)
[1] http://patchwork.openembedded.org/bundle/mad_soft/mupdf-0.6-v1/
Quoted 8 lines
Changelog v1 => v2:
* removed
autotools_stage_allfrom openjpeg and jbig2dec recipes, as suggested by Khem Raj
* used upstream patch fixing endianness issues on 16-bit displays instead of custom hack (upstream has been very kind to fix this bug so quickly)
* more verbose comment about why we need -O2
Was this answered before? Why is everything in a '-tools' package? It looks like we have empty main packages and populated '-tools'.
Signature · 2 lines
Tom Rini Mentor Graphics Corporation