aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/qpdf2
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-24 17:57:24 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-30 02:35:12 +0100
commite9b45ff67d32fdc27950a51135b6dabada8334e7 (patch)
treede99cd760c8292ee1dd334e23e1e5cc43e90dfbd /recipes-qtopia/qpdf2
downloadmeta-opie-e9b45ff67d32fdc27950a51135b6dabada8334e7.tar.gz
meta-opie-e9b45ff67d32fdc27950a51135b6dabada8334e7.tar.bz2
meta-opie-e9b45ff67d32fdc27950a51135b6dabada8334e7.zip
initial commit of meta-opie
Populate the repository with files from OpenEmbedded at revision 45edf621296daf150c72b876d720861235e5762e - no changes, only rearranged the directory structure to match the new oe-core style and added COPYING.MIT and README. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'recipes-qtopia/qpdf2')
-rw-r--r--recipes-qtopia/qpdf2/files/fix-sigsegv.patch22
-rw-r--r--recipes-qtopia/qpdf2/files/fix_qtversion_check.patch11
-rw-r--r--recipes-qtopia/qpdf2/files/gcc4.patch31
-rw-r--r--recipes-qtopia/qpdf2/files/hack-the-hack.patch173
-rw-r--r--recipes-qtopia/qpdf2/qpdf2_2.2.1.bb39
5 files changed, 276 insertions, 0 deletions
diff --git a/recipes-qtopia/qpdf2/files/fix-sigsegv.patch b/recipes-qtopia/qpdf2/files/fix-sigsegv.patch
new file mode 100644
index 0000000..33e9599
--- /dev/null
+++ b/recipes-qtopia/qpdf2/files/fix-sigsegv.patch
@@ -0,0 +1,22 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- qpdf2_2.2.1/qpdf.cpp~fix-sigsegv
++++ qpdf2_2.2.1/qpdf.cpp
+@@ -42,10 +42,10 @@
+ {
+ QPEApplication app ( argc, argv );
+
+- if (argc >= 1
+- && strcmp(argv[1],"-d") == 0) {
+- qpdf_debug_level = atoi(argv[2]);
+- }
++// if (argc >= 1
++// && strcmp(argv[1],"-d") == 0) {
++// qpdf_debug_level = atoi(argv[2]);
++// }
+
+ // read config file
+ globalParams = new GlobalParams ( "" );
diff --git a/recipes-qtopia/qpdf2/files/fix_qtversion_check.patch b/recipes-qtopia/qpdf2/files/fix_qtversion_check.patch
new file mode 100644
index 0000000..4dcb32d
--- /dev/null
+++ b/recipes-qtopia/qpdf2/files/fix_qtversion_check.patch
@@ -0,0 +1,11 @@
+--- qpdf2_2.2.1/QOutputDev.cpp.orig 2005-01-31 10:57:03.000000000 +0000
++++ qpdf2_2.2.1/QOutputDev.cpp 2005-01-31 10:57:36.000000000 +0000
+@@ -1083,7 +1083,7 @@
+ tmp. setPoints ( 4, lrint ( x0 ), lrint ( y0 ), lrint ( x1 ), lrint ( y1 ),
+ lrint ( x2 ), lrint ( y2 ), lrint ( x3 ), lrint ( y3 ));
+
+-#if QT_VERSION < 300
++#if QT_VERSION < 0x030000
+ tmp = tmp. quadBezier ( );
+
+ for ( uint loop = 0; loop < tmp. count ( ); loop++ ) {
diff --git a/recipes-qtopia/qpdf2/files/gcc4.patch b/recipes-qtopia/qpdf2/files/gcc4.patch
new file mode 100644
index 0000000..5e90302
--- /dev/null
+++ b/recipes-qtopia/qpdf2/files/gcc4.patch
@@ -0,0 +1,31 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- qpdf2_2.2.1/qdocnotes.h~gcc4 2004-02-17 18:13:18.000000000 +0100
++++ qpdf2_2.2.1/qdocnotes.h 2006-03-20 19:16:38.000000000 +0100
+@@ -1,6 +1,6 @@
+ #include "xmlparser.h"
+ #include <qmap.h>
+-
++class QDocNotes;
+ class QDocNote {
+ public:
+ friend class QDocNotes;
+--- qpdf2_2.2.1/xpdf/TextOutputDev.h~gcc4 2004-02-17 18:13:18.000000000 +0100
++++ qpdf2_2.2.1/xpdf/TextOutputDev.h 2006-03-20 19:19:47.000000000 +0100
+@@ -139,6 +139,13 @@
+ //------------------------------------------------------------------------
+ // TextPool
+ //------------------------------------------------------------------------
++class TextPool;
++class TextLine;
++class TextBlock;
++class TextFlow;
++class TextWordList;
++class TextPage;
++class TextLineFrag;
+
+ class TextPool {
+ public:
diff --git a/recipes-qtopia/qpdf2/files/hack-the-hack.patch b/recipes-qtopia/qpdf2/files/hack-the-hack.patch
new file mode 100644
index 0000000..52fc488
--- /dev/null
+++ b/recipes-qtopia/qpdf2/files/hack-the-hack.patch
@@ -0,0 +1,173 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- qpdf2_2.2.1/qpdfview.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdfview.cpp
+@@ -4,7 +4,7 @@
+ #ifdef __GNUC__
+ #pragma implementation
+ #endif
+-
++#define private public
+ #include "aconf.h"
+
+ #include "qpdf.h"
+--- qpdf2_2.2.1/qpdf.h~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdf.h
+@@ -1,3 +1,4 @@
++#define private public
+ #ifndef __QPDF_H__
+ #define __QPDF_H__
+
+@@ -12,6 +13,8 @@
+
+ #include "signal.h"
+
++#define private public
++#include <qobject.h>
+ #include <qpe/qpeapplication.h>
+ #include <qpe/resource.h>
+ #include <qpe/applnk.h>
+--- qpdf2_2.2.1/qpdf.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdf.cpp
+@@ -12,11 +12,11 @@
+ //
+ //========================================================================
+
+-
++#define private public
+ #include "qpdf.h"
+ #include <qpe/qpemenubar.h>
+ #include <qdir.h>
+-
++#include <errno.h>
+ #ifdef AUTOTEST
+ #define MAX_ZOOM 1.2
+ #else
+@@ -2636,15 +2636,6 @@
+ setRenameBar( false );
+ }
+
+-
+-#ifdef ARM
+-extern int errno;
+-#else
+-extern "C" {
+- int errno;
+-};
+-#endif
+-
+ void
+ QPDFWindow::writeConfig()
+ {
+--- qpdf2_2.2.1/textedit.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/textedit.cpp
+@@ -19,7 +19,7 @@
+ **********************************************************************/
+
+ #include <stdlib.h> //getenv
+-
++#define private public
+ #include <qpe/global.h>
+ #include <qpe/fileselector.h>
+ #include <qpe/applnk.h>
+--- qpdf2_2.2.1/autotest.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/autotest.cpp
+@@ -7,7 +7,7 @@
+ qobject.h - make the activate_xxx functions public
+
+ */
+-
++#define private public
+ #include "qpdf.h"
+ #ifdef AUTOTEST
+ //#define MEM_LEAKS_EVENT_COUNT 50000
+--- qpdf2_2.2.1/qpdffileselector.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdffileselector.cpp
+@@ -3,7 +3,7 @@
+
+
+ */
+-
++#define private public
+ #include "qpdf.h"
+
+ #include <qwmatrix.h>
+--- qpdf2_2.2.1/qpdfconfig.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdfconfig.cpp
+@@ -1,3 +1,4 @@
++#define private public
+ #include "qpdf.h"
+ #include <qpushbutton.h>
+ #include <qradiobutton.h>
+--- qpdf2_2.2.1/qqimage.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qqimage.cpp
+@@ -8,7 +8,7 @@
+ "protected:" and add "friend class QQImage" to class QImage.
+
+ */
+-
++#define private public
+
+ /****************************************************************************
+ ** $Id: qt/src/kernel/qimage.cpp 2.3.8-snapshot-20040114 edited 2003-12-29 $
+--- qpdf2_2.2.1/qdocnotes.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qdocnotes.cpp
+@@ -5,7 +5,7 @@
+ #include <qpe/stringutil.h>
+ #include <qfile.h>
+ #include <qfileinfo.h>
+-
++#include <errno.h>
+ #define assert(X)
+
+ QDocNote::QDocNote()
+@@ -698,18 +698,6 @@
+ return(save(m_filepath, state));
+ }
+
+-
+-#ifdef ARM
+-extern int errno;
+-extern char *strerror(int);
+-#else
+-extern "C" {
+- int errno;
+- extern char *strerror(int);
+-}
+-#endif
+-
+-
+ bool
+ QDocNotes::save(const QString &filepath, QDocState *state)
+ {
+--- qpdf2_2.2.1/xpdf/PDFDoc.cc~hack-the-hack.patch
++++ qpdf2_2.2.1/xpdf/PDFDoc.cc
+@@ -7,7 +7,7 @@
+ //========================================================================
+
+ #include <aconf.h>
+-
++#include <errno.h>
+ #ifdef USE_GCC_PRAGMAS
+ #pragma implementation
+ #endif
+@@ -205,16 +205,6 @@
+ }
+ }
+
+-#ifdef ARM
+-extern int errno;
+-extern char *strerror(int);
+-#else
+-extern "C" {
+- int errno;
+- extern char *strerror(int);
+-}
+-#endif
+-
+ void PDFDoc::displayPage(OutputDev *out, int page, fouble hDPI, fouble vDPI,
+ int rotate, GBool doLinks,
+ GBool (*abortCheckCbk)(void *data),
diff --git a/recipes-qtopia/qpdf2/qpdf2_2.2.1.bb b/recipes-qtopia/qpdf2/qpdf2_2.2.1.bb
new file mode 100644
index 0000000..7232637
--- /dev/null
+++ b/recipes-qtopia/qpdf2/qpdf2_2.2.1.bb
@@ -0,0 +1,39 @@
+DESCRIPTION = "QPDF2 is a Viewer for PDF documents. An unnecessary fork based on opie-qpdf."
+PRIORITY = "optional"
+SECTION = "opie/applications"
+HOMEPAGE = "http://qpdf2.sf.net"
+LICENSE = "GPL"
+DEPENDS = "t1lib freetype"
+APPNAME = "qpdf"
+APPTYPE = "binary"
+APPDESKTOP = "${S}/ipkg-render-freetype/opt/QtPalmtop/apps/Applications"
+PR = "r3"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/qpdf2/qpdf2_2.2.1_20040217b.tgz \
+ file://hack-the-hack.patch \
+ file://fix-sigsegv.patch \
+ file://fix_qtversion_check.patch \
+ file://gcc4.patch"
+S = "${WORKDIR}/qpdf2_${PV}"
+
+inherit opie
+
+QMAKE_PROFILES = "qpdf_render-freetype.pro"
+EXTRA_QMAKEVARS_POST += "TARGET=qpdf"
+export OE_QMAKE_LINK="${CXX}"
+
+do_configure_prepend() {
+ find . -name "Makefile"|xargs rm -f
+ find . -name "*.o"|xargs rm -f
+ find . -name "*.a"|xargs rm -f
+ find . -name "*.la"|xargs rm -f
+}
+
+do_install() {
+ install -d ${D}${palmtopdir}/pics/qpdf
+ install -m 0644 ipkg-render-freetype/opt/QtPalmtop/pics/qpdf/*.* ${D}${palmtopdir}/pics/qpdf/
+}
+
+
+SRC_URI[md5sum] = "6b94eda9bd8e2b884c753d70fee04b3f"
+SRC_URI[sha256sum] = "3378f7a92f3afbc3663cce8c99790092282eb01101ba21aed4709736cf875ad5"