diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-extended/mml-widget | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-extended/mml-widget')
4 files changed, 145 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mml-widget/gtkmathview/mathview-gcc43x.diff b/meta-oe/recipes-extended/mml-widget/gtkmathview/mathview-gcc43x.diff new file mode 100644 index 000000000..fcc52c1f4 --- /dev/null +++ b/meta-oe/recipes-extended/mml-widget/gtkmathview/mathview-gcc43x.diff | |||
@@ -0,0 +1,63 @@ | |||
1 | --- /tmp/mathVariantAux.cc 2008-07-13 15:56:56.000000000 +0200 | ||
2 | +++ gtkmathview-0.8.0/src/engine/mathml/mathVariantAux.cc 2008-07-13 15:57:46.893198000 +0200 | ||
3 | @@ -20,6 +20,8 @@ | ||
4 | |||
5 | #include <cassert> | ||
6 | |||
7 | +#include <string.h> | ||
8 | + | ||
9 | #include "mathVariantAux.hh" | ||
10 | |||
11 | static MathVariantAttributes vattr[] = { | ||
12 | --- /tmp/T1_FontDataBase.cc 2008-07-13 16:25:24.000000000 +0200 | ||
13 | +++ gtkmathview-0.8.0/src/backend/ps/T1_FontDataBase.cc 2008-07-13 16:25:47.123198000 +0200 | ||
14 | @@ -20,6 +20,7 @@ | ||
15 | #include <config.h> | ||
16 | #include <map> | ||
17 | #include <string> | ||
18 | +#include <string.h> | ||
19 | #include <stdlib.h> | ||
20 | #include <iostream> | ||
21 | #include <list> | ||
22 | --- /tmp/SMS.cc 2008-07-13 16:27:23.000000000 +0200 | ||
23 | +++ gtkmathview-0.8.0/mathmlsvg/SMS.cc 2008-07-13 16:27:41.543198000 +0200 | ||
24 | @@ -19,6 +19,7 @@ | ||
25 | #include <config.h> | ||
26 | |||
27 | #include <sstream> | ||
28 | +#include <string.h> | ||
29 | #include "defs.h" | ||
30 | #include "AbstractLogger.hh" | ||
31 | #include "ValueConversion.hh" | ||
32 | --- /tmp/main.cc 2008-07-13 16:29:11.000000000 +0200 | ||
33 | +++ gtkmathview-0.8.0/mathmlsvg/main.cc 2008-07-13 16:29:28.813198000 +0200 | ||
34 | @@ -20,7 +20,7 @@ | ||
35 | |||
36 | #include <cassert> | ||
37 | #include <fstream> | ||
38 | - | ||
39 | +#include <string.h> | ||
40 | #include <popt.h> | ||
41 | |||
42 | // needed for old versions of GCC, must come before String.hh! | ||
43 | --- /tmp/main.cc 2008-07-13 16:30:11.000000000 +0200 | ||
44 | +++ gtkmathview-0.8.0/mathmlps/main.cc 2008-07-13 16:30:33.183198000 +0200 | ||
45 | @@ -20,7 +20,7 @@ | ||
46 | |||
47 | #include <cassert> | ||
48 | #include <fstream> | ||
49 | - | ||
50 | +#include <string.h> | ||
51 | #include <popt.h> | ||
52 | |||
53 | // needed for old versions of GCC, must come before String.hh! | ||
54 | --- gtkmathview-0.8.0.orig/src/common/AbstractLogger.cc 2007-08-17 12:02:45.000000000 +0200 | ||
55 | +++ gtkmathview-0.8.0/src/common/AbstractLogger.cc 2010-02-01 10:19:46.000000000 +0100 | ||
56 | @@ -19,6 +19,7 @@ | ||
57 | #include <config.h> | ||
58 | |||
59 | #include <stdarg.h> | ||
60 | +#include <stdio.h> | ||
61 | |||
62 | #include "AbstractLogger.hh" | ||
63 | |||
diff --git a/meta-oe/recipes-extended/mml-widget/gtkmathview/mathview-gcc47x.diff b/meta-oe/recipes-extended/mml-widget/gtkmathview/mathview-gcc47x.diff new file mode 100644 index 000000000..11b726004 --- /dev/null +++ b/meta-oe/recipes-extended/mml-widget/gtkmathview/mathview-gcc47x.diff | |||
@@ -0,0 +1,48 @@ | |||
1 | ../../../src/frontend/common/TemplateBuilder.hh:50:113: warning: 'linkerAssoc' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] | ||
2 | ../../../src/frontend/common/TemplateBuilder.hh:50:113: note: declarations in dependent base 'custom_reader_Builder' are not found by unqualified lookup | ||
3 | ../../../src/frontend/common/TemplateBuilder.hh:50:113: note: use 'this->linkerAssoc' instead | ||
4 | ../../../src/frontend/common/TemplateBuilder.hh:54:111: error: redeclaration of 'SmartPtr<BoxMLDecorElement> elem' | ||
5 | ../../../src/frontend/common/TemplateBuilder.hh:50:49: error: 'SmartPtr<BoxMLDecorElement> elem' previously declared here | ||
6 | ../../../src/frontend/common/TemplateBuilder.hh:55:2: warning: 'linkerAdd' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] | ||
7 | ../../../src/frontend/common/TemplateBuilder.hh:55:2: note: declarations in dependent base 'custom_reader_Builder' are not found by unqualified lookup | ||
8 | ../../../src/frontend/common/TemplateBuilder.hh:55:2: note: use 'this->linkerAdd' instead | ||
9 | |||
10 | --- gtkmathview-0.8.0.orig/src/frontend/common/TemplateBuilder.hh 2007-08-17 12:02:34.000000000 +0200 | ||
11 | +++ gtkmathview-0.8.0/src/frontend/common/TemplateBuilder.hh 2012-04-30 11:45:07.000000000 +0200 | ||
12 | @@ -47,12 +47,13 @@ | ||
13 | SmartPtr<typename ElementBuilder::type> | ||
14 | getElement(const typename Model::Element& el) const | ||
15 | { | ||
16 | - if (SmartPtr<typename ElementBuilder::type> elem = smart_cast<typename ElementBuilder::type>(linkerAssoc(el))) | ||
17 | + SmartPtr<typename ElementBuilder::type> elem = NULL; | ||
18 | + if (elem = smart_cast<typename ElementBuilder::type>(this->linkerAssoc(el))) | ||
19 | return elem; | ||
20 | else | ||
21 | { | ||
22 | - SmartPtr<typename ElementBuilder::type> elem = ElementBuilder::type::create(ElementBuilder::getContext(*this)); | ||
23 | - linkerAdd(el, elem); | ||
24 | + elem = ElementBuilder::type::create(ElementBuilder::getContext(*this)); | ||
25 | + this->linkerAdd(el, elem); | ||
26 | return elem; | ||
27 | } | ||
28 | } | ||
29 | --- gtkmathview-0.8.0.orig/mathmlsvg/main.cc 2012-04-30 11:35:19.000000000 +0200 | ||
30 | +++ gtkmathview-0.8.0/mathmlsvg/main.cc 2012-04-30 11:51:19.000000000 +0200 | ||
31 | @@ -20,6 +20,7 @@ | ||
32 | |||
33 | #include <cassert> | ||
34 | #include <fstream> | ||
35 | +#include <unistd.h> | ||
36 | #include <string.h> | ||
37 | #include <popt.h> | ||
38 | |||
39 | --- gtkmathview-0.8.0.orig/mathmlps/main.cc 2012-04-30 11:35:19.000000000 +0200 | ||
40 | +++ gtkmathview-0.8.0/mathmlps/main.cc 2012-04-30 11:50:57.000000000 +0200 | ||
41 | @@ -20,6 +20,7 @@ | ||
42 | |||
43 | #include <cassert> | ||
44 | #include <fstream> | ||
45 | +#include <unistd.h> | ||
46 | #include <string.h> | ||
47 | #include <popt.h> | ||
48 | |||
diff --git a/meta-oe/recipes-extended/mml-widget/gtkmathview/qualify-lookup.diff b/meta-oe/recipes-extended/mml-widget/gtkmathview/qualify-lookup.diff new file mode 100644 index 000000000..1d4895045 --- /dev/null +++ b/meta-oe/recipes-extended/mml-widget/gtkmathview/qualify-lookup.diff | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh | ||
2 | =================================================================== | ||
3 | --- gtkmathview-0.8.0.orig/src/frontend/common/TemplateElementIterator.hh | ||
4 | +++ gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh | ||
5 | @@ -43,7 +43,7 @@ protected: | ||
6 | findValidNodeForward(const typename Model::Node& p0) const | ||
7 | { | ||
8 | for (typename Model::Node p = p0; p; p = Model::getNextSibling(p)) | ||
9 | - if (valid(p)) return Model::asElement(p); | ||
10 | + if (this->valid(p)) return Model::asElement(p); | ||
11 | return typename Model::Element(); | ||
12 | } | ||
13 | |||
diff --git a/meta-oe/recipes-extended/mml-widget/gtkmathview_0.8.0.bb b/meta-oe/recipes-extended/mml-widget/gtkmathview_0.8.0.bb new file mode 100644 index 000000000..65b07f502 --- /dev/null +++ b/meta-oe/recipes-extended/mml-widget/gtkmathview_0.8.0.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | HOMEPAGE = "http://helm.cs.unibo.it/mml-widget/" | ||
2 | DEPENDS = "t1lib gtk+ popt libxslt libxml2" | ||
3 | |||
4 | LICENSE = "LGPLv3" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6" | ||
6 | |||
7 | PR = "r3" | ||
8 | |||
9 | SRC_URI = "http://helm.cs.unibo.it/mml-widget/sources/${BP}.tar.gz \ | ||
10 | file://mathview-gcc43x.diff \ | ||
11 | file://mathview-gcc47x.diff \ | ||
12 | file://qualify-lookup.diff \ | ||
13 | " | ||
14 | SRC_URI[md5sum] = "b53564e553728d4b69f7d366dfeb5299" | ||
15 | SRC_URI[sha256sum] = "1dc30175da6a3c560a7d62d1abe1c2f9829d988e6f1a7c5e766544575c558c43" | ||
16 | |||
17 | inherit autotools-brokensep pkgconfig | ||
18 | |||
19 | do_configure_prepend() { | ||
20 | sed -i -e s:AM_BINRELOC::g ${S}/configure.ac | ||
21 | } | ||