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-gpe | |
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-gpe')
15 files changed, 369 insertions, 0 deletions
diff --git a/meta-gpe/README b/meta-gpe/README new file mode 100644 index 000000000..3be1d105b --- /dev/null +++ b/meta-gpe/README | |||
@@ -0,0 +1,23 @@ | |||
1 | This layer depends on: | ||
2 | |||
3 | URI: git://github.com/openembedded/oe-core.git | ||
4 | branch: dizzy | ||
5 | revision: HEAD | ||
6 | |||
7 | URI: git://github.com/openembedded/meta-oe.git | ||
8 | branch: dizzy | ||
9 | revision: HEAD | ||
10 | |||
11 | Send pull requests to openembedded-devel@lists.openembedded.org with '[meta-gpe][dizzy]' in the subject' | ||
12 | |||
13 | When sending single patches, please using something like: | ||
14 | 'git send-email -M -1 --to openembedded-devel@lists.openembedded.org --subject-prefix=meta-gpe][dizzy][PATCH' | ||
15 | |||
16 | Interim layer maintainers: Koen Kooi <koen@dominion.thruhere.net> | ||
17 | Martin Jansa <martin.jansa@gmail.com> | ||
18 | |||
19 | Dizzy branch maintainers: | ||
20 | Otavio Salvador <otavio@ossystems.com.br> | ||
21 | Armin Kuster <akuster808@gmail.com> | ||
22 | |||
23 | Prefix email subject with: [dizzy] | ||
diff --git a/meta-gpe/conf/layer.conf b/meta-gpe/conf/layer.conf new file mode 100644 index 000000000..00f3929f8 --- /dev/null +++ b/meta-gpe/conf/layer.conf | |||
@@ -0,0 +1,15 @@ | |||
1 | # We have a conf and classes directory, append to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have a recipes directory, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
6 | |||
7 | BBFILE_COLLECTIONS += "gpe-layer" | ||
8 | BBFILE_PATTERN_gpe-layer := "^${LAYERDIR}/" | ||
9 | BBFILE_PRIORITY_gpe-layer = "7" | ||
10 | |||
11 | # This should only be incremented on significant changes that will | ||
12 | # cause compatibility issues with other layers | ||
13 | LAYERVERSION_gpe-layer = "1" | ||
14 | |||
15 | LAYERDEPENDS_gpe-layer = "core openembedded-layer" | ||
diff --git a/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/0001-Fix-the-ordering-of-LDADD-options-to-fix-a-compilati.patch b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/0001-Fix-the-ordering-of-LDADD-options-to-fix-a-compilati.patch new file mode 100644 index 000000000..c976ff470 --- /dev/null +++ b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/0001-Fix-the-ordering-of-LDADD-options-to-fix-a-compilati.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From c551dece6768f67b74b508e9c0133320205ef2df Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Mon, 23 May 2011 15:03:29 +0200 | ||
4 | Subject: [PATCH] Fix the ordering of LDADD options to fix a compilation failure. | ||
5 | |||
6 | "invalid DSO for symbol `XUngrabServer' definition " | ||
7 | |||
8 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
9 | --- | ||
10 | src/Makefile.am | 2 +- | ||
11 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
12 | |||
13 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
14 | index 2fddc98..45bd850 100644 | ||
15 | --- a/src/Makefile.am | ||
16 | +++ b/src/Makefile.am | ||
17 | @@ -6,7 +6,7 @@ INCLUDES = -DPKGDATADIR=\"$(pkgdatadir)\" \ | ||
18 | $(GLADE_CFLAGS) \ | ||
19 | -D_GNU_SOURCE | ||
20 | |||
21 | -LIBS = $(GTK_LIBS) $(GLADE_LIBS) $(XSHAPE_LIBS) | ||
22 | +LIBS = -lX11 $(XSHAPE_LIBS) $(GLADE_LIBS) $(GTK_LIBS) | ||
23 | |||
24 | bin_PROGRAMS = gpe-scap | ||
25 | gpe_scap_SOURCES = scr-i18n.h \ | ||
26 | -- | ||
27 | 1.6.6.1 | ||
28 | |||
diff --git a/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch new file mode 100644 index 000000000..3cfe5d724 --- /dev/null +++ b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap/use.libsoup-2.4.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | diff -uNr gpe-scap-1.4.orig/configure.ac gpe-scap-1.4/configure.ac | ||
2 | --- gpe-scap-1.4.orig/configure.ac 2009-03-05 18:53:53.000000000 +0100 | ||
3 | +++ gpe-scap-1.4/configure.ac 2012-05-06 10:18:29.348308322 +0200 | ||
4 | @@ -24,7 +24,7 @@ | ||
5 | AC_SUBST(LDFLAGS) | ||
6 | |||
7 | dnl libraries | ||
8 | -GTK_MODULES="gtk+-2.0 >= 2.6.0 gthread-2.0 libsoup-2.2" | ||
9 | +GTK_MODULES="gtk+-2.0 >= 2.6.0 gthread-2.0 libsoup-2.4" | ||
10 | PKG_CHECK_MODULES(GTK, $GTK_MODULES) | ||
11 | AC_SUBST(GTK_CFLAGS) | ||
12 | AC_SUBST(GTK_LIBS) | ||
13 | diff -uNr gpe-scap-1.4.orig/src/scr-shot-common.c gpe-scap-1.4/src/scr-shot-common.c | ||
14 | --- gpe-scap-1.4.orig/src/scr-shot-common.c 2009-03-05 12:13:20.000000000 +0100 | ||
15 | +++ gpe-scap-1.4/src/scr-shot-common.c 2012-05-06 10:30:52.299371576 +0200 | ||
16 | @@ -182,12 +182,12 @@ | ||
17 | /* create session and message */ | ||
18 | session = soup_session_sync_new (); | ||
19 | message = soup_message_new ("POST", url); | ||
20 | - soup_message_add_header (message->request_headers, "User-Agent", "gpe-scap/" VERSION); | ||
21 | - soup_message_add_header (message->request_headers, "Accept", | ||
22 | + soup_message_headers_append (message->request_headers, "User-Agent", "gpe-scap/" VERSION); | ||
23 | + soup_message_headers_append (message->request_headers, "Accept", | ||
24 | "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"); | ||
25 | -/* soup_message_add_header (message->request_headers, "Accept-Charset", "Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7"); | ||
26 | - soup_message_add_header (message->request_headers, "Keep-Alive", "100"); | ||
27 | - soup_message_add_header (message->request_headers, "Connection", "keep-alive"); | ||
28 | +/* soup_message_headers_append (message->request_headers, "Accept-Charset", "Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7"); | ||
29 | + soup_message_headers_append (message->request_headers, "Keep-Alive", "100"); | ||
30 | + soup_message_headers_append (message->request_headers, "Connection", "keep-alive"); | ||
31 | soup_message_wire add_header (message->request_headers, "Accept-Encoding", "gzip,deflate"); | ||
32 | */ | ||
33 | /* build message body */ | ||
34 | @@ -207,7 +207,7 @@ | ||
35 | memcpy (body + strlen (cmd) + len, tail, strlen (tail)); | ||
36 | |||
37 | soup_message_set_request (message, "multipart/form-data; boundary="SEP, | ||
38 | - SOUP_BUFFER_SYSTEM_OWNED, body, content_len); | ||
39 | + SOUP_MEMORY_TAKE, body, content_len); | ||
40 | |||
41 | soup_session_send_message (session, message); | ||
42 | |||
diff --git a/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb new file mode 100644 index 000000000..3f1e27e87 --- /dev/null +++ b/meta-gpe/recipes-graphics/gpe-scap/gpe-scap_1.4.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "A GPE application that allows you to take screenshots" | ||
2 | SECTION = "gpe" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
6 | |||
7 | DEPENDS = "glib-2.0 gtk+ libgpewidget libglade libsoup-2.4" | ||
8 | |||
9 | PR = "r3" | ||
10 | |||
11 | SRC_URI[md5sum] = "eaf545561b0ad981c9d01833f30fcf95" | ||
12 | SRC_URI[sha256sum] = "762778421fae7c62d5ec6a9d27986166c0dbbe2ff51fc10bb9b8baff5c367534" | ||
13 | |||
14 | GPE_TARBALL_SUFFIX = "bz2" | ||
15 | |||
16 | inherit gpe autotools pkgconfig | ||
17 | |||
18 | SRC_URI += "file://0001-Fix-the-ordering-of-LDADD-options-to-fix-a-compilati.patch \ | ||
19 | file://use.libsoup-2.4.patch \ | ||
20 | " | ||
21 | |||
22 | RREPLACES_${PN} = "gpe-screenshot" | ||
23 | |||
diff --git a/meta-gpe/recipes-graphics/libgpewidget/libgpewidget/glib-2.32.patch b/meta-gpe/recipes-graphics/libgpewidget/libgpewidget/glib-2.32.patch new file mode 100644 index 000000000..f590caa46 --- /dev/null +++ b/meta-gpe/recipes-graphics/libgpewidget/libgpewidget/glib-2.32.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | diff -uNr libgpewidget-0.117.orig/gpehelp.c libgpewidget-0.117/gpehelp.c | ||
2 | --- libgpewidget-0.117.orig/gpehelp.c 2006-10-12 12:20:33.000000000 +0200 | ||
3 | +++ libgpewidget-0.117/gpehelp.c 2012-04-30 07:45:57.813293792 +0200 | ||
4 | @@ -33,7 +33,6 @@ | ||
5 | #include <gdk-pixbuf/gdk-pixbuf.h> | ||
6 | #include <gdk/gdk.h> | ||
7 | #include <glib.h> | ||
8 | -#include <glib/gkeyfile.h> | ||
9 | |||
10 | |||
11 | /* helper function definitions*/ | ||
diff --git a/meta-gpe/recipes-graphics/libgpewidget/libgpewidget/pkgconfig.patch b/meta-gpe/recipes-graphics/libgpewidget/libgpewidget/pkgconfig.patch new file mode 100644 index 000000000..317e01a9b --- /dev/null +++ b/meta-gpe/recipes-graphics/libgpewidget/libgpewidget/pkgconfig.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- configure.ac.orig 2006-02-04 17:37:55.000000000 +0100 | ||
2 | +++ configure.ac 2006-02-06 00:56:28.000000000 +0100 | ||
3 | @@ -36,7 +36,7 @@ | ||
4 | ENABLE_CAIRO=$enableval | ||
5 | ], | ||
6 | [ | ||
7 | - PKG_CHECK_EXISTS(cairo, [ENABLE_CAIRO=yes], [ENABLE_CAIRO=no]) | ||
8 | + PKG_CHECK_MODULES(cairo, [ENABLE_CAIRO=yes], [ENABLE_CAIRO=no]) | ||
9 | ]) | ||
10 | |||
11 | ENABLE_HILDON=false | ||
diff --git a/meta-gpe/recipes-graphics/libgpewidget/libgpewidget_0.117.bb b/meta-gpe/recipes-graphics/libgpewidget/libgpewidget_0.117.bb new file mode 100644 index 000000000..df774eed0 --- /dev/null +++ b/meta-gpe/recipes-graphics/libgpewidget/libgpewidget_0.117.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | DESCRIPTION = "libgpewidget contains a collection of widgets and other common code shared by many GPE applications." | ||
2 | SECTION = "gpe/libs" | ||
3 | |||
4 | LICENSE = "LGPLv2.1" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d8045f3b8f929c1cb29a1e3fd737b499" | ||
6 | |||
7 | DEPENDS = "gtk+ cairo libxinerama libxcomposite libxrender" | ||
8 | PR = "r5" | ||
9 | |||
10 | inherit gpe pkgconfig autotools gtk-doc | ||
11 | |||
12 | SRC_URI += "file://pkgconfig.patch;striplevel=0 \ | ||
13 | file://glib-2.32.patch \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "b85a839264a35d0faf9a1a38c486e189" | ||
16 | SRC_URI[sha256sum] = "f96d30c09b0395ea4e146730fd52d9ea303b619bb139051d9f12d3f868a9e18c" | ||
17 | |||
18 | GPE_TARBALL_SUFFIX = "bz2" | ||
19 | |||
20 | EXTRA_OECONF = "--enable-cairo" | ||
21 | LDFLAGS += " -L${STAGING_LIBDIR}" | ||
22 | |||
23 | PACKAGES =+ "${PN}-bin" | ||
diff --git a/meta-gpe/recipes-graphics/minilite/minilite/makefile-fix.patch b/meta-gpe/recipes-graphics/minilite/minilite/makefile-fix.patch new file mode 100644 index 000000000..1be6ceaa8 --- /dev/null +++ b/meta-gpe/recipes-graphics/minilite/minilite/makefile-fix.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- /tmp/Makefile.old 2006-01-16 22:51:34.000000000 +0100 | ||
2 | +++ minilite-050/Makefile 2009-05-01 16:36:32.000000000 +0200 | ||
3 | @@ -45,7 +45,7 @@ | ||
4 | |||
5 | install-program: all | ||
6 | mkdir -p $(DESTDIR)$(PREFIX)/bin | ||
7 | - $(INSTALL) -s $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE) | ||
8 | + $(INSTALL) $(PACKAGE) $(DESTDIR)$(PREFIX)/bin/$(PACKAGE) | ||
9 | mkdir -p $(DESTDIR)$(PREFIX)/share/applications | ||
10 | $(INSTALL) -m 644 $(PACKAGE).desktop $(DESTDIR)$(PREFIX)/share/applications/$(PACKAGE).desktop | ||
11 | mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps/ | ||
diff --git a/meta-gpe/recipes-graphics/minilite/minilite_0.50.bb b/meta-gpe/recipes-graphics/minilite/minilite_0.50.bb new file mode 100644 index 000000000..90960a2b0 --- /dev/null +++ b/meta-gpe/recipes-graphics/minilite/minilite_0.50.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "GPE Screen light control dockapp" | ||
2 | SECTION = "gpe" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://minilite.c;beginline=8;endline=11;md5=fe9332aaecbce9f74ce2bfeb91680ed1" | ||
6 | |||
7 | DEPENDS = "libgpewidget" | ||
8 | |||
9 | inherit gpe | ||
10 | |||
11 | SRC_URI = "${GPE_MIRROR}/${BP}.tar.gz \ | ||
12 | file://makefile-fix.patch" | ||
13 | SRC_URI[md5sum] = "d81cecf269ad7bab0da960e6e7228332" | ||
14 | SRC_URI[sha256sum] = "2b299425203246090a4949e034f1d0efb3ff99cd1591d0e16c57370a530b361e" | ||
15 | |||
16 | export CVSBUILD="no" | ||
diff --git a/meta-gpe/recipes-support/fbreader/fbreader-0.12.10/Makefile.patch b/meta-gpe/recipes-support/fbreader/fbreader-0.12.10/Makefile.patch new file mode 100644 index 000000000..0e498c712 --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/fbreader-0.12.10/Makefile.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | diff -uri fbreader-0.12.1.orig/fbreader/Makefile fbreader-0.12.1/fbreader/Makefile | ||
2 | --- fbreader-0.12.1.orig/fbreader/Makefile 2009-12-13 09:03:11.000000000 +0100 | ||
3 | +++ fbreader-0.12.1/fbreader/Makefile 2009-12-14 17:18:47.548638783 +0100 | ||
4 | @@ -37,7 +37,6 @@ | ||
5 | @install $(TARGET) $(DESTDIR)$(BINDIR)/FBReader | ||
6 | @install -d $(FBSHAREDIR) | ||
7 | @install -d $(FBSHAREDIR)/help | ||
8 | - @./scripts/install_help.sh $(VARIANT) $(FBSHAREDIR)/help | ||
9 | @install -d $(FBSHAREDIR)/network | ||
10 | @install -m 0644 $(wildcard data/network/*.xml) $(FBSHAREDIR)/network | ||
11 | @install -d $(FBSHAREDIR)/network/certificates | ||
12 | @@ -58,8 +57,8 @@ | ||
13 | @install -d $(FBSHAREDIR)/resources | ||
14 | @install -m 0644 $(wildcard data/resources/*.xml) $(FBSHAREDIR)/resources | ||
15 | @install -d $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
16 | - @install -m 0644 $(wildcard data/icons/toolbar/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
17 | - @install -m 0644 $(wildcard data/icons/filetree/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
18 | + @install -m 0644 $(wildcard data/icons/toolbar/$(TARGET_ARCH)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
19 | + @install -m 0644 $(wildcard data/icons/filetree/$(TARGET_ARCH)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
20 | @install -m 0644 $(wildcard data/icons/booktree/new/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
21 | @make -C $(TARGET_ARCH) RESOLUTION=$(RESOLUTION) install | ||
22 | |||
diff --git a/meta-gpe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch b/meta-gpe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch new file mode 100644 index 000000000..00cba1023 --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Fix compilation with gcc 4.5 | ||
2 | |||
3 | [FBreader Ticket #340] -- http://old.fbreader.org/mantis/view.php?id=340 | ||
4 | |||
5 | Without that patch we have: | ||
6 | Compiling Library.o ...Library.cpp:42:1: error: 'Library::Library' names the constructor, not the type | ||
7 | |||
8 | Upstream-Status: Accepted [Fixed in Version 0.14.0] | ||
9 | |||
10 | --- fbreader-0.12.10-orig/fbreader/src/library/Library.cpp 2010-04-01 15:14:24.000000000 +0200 | ||
11 | +++ fbreader-0.12.10/fbreader/src/library/Library.cpp 2010-04-13 13:34:06.000000000 +0200 | ||
12 | @@ -39,7 +39,7 @@ | ||
13 | shared_ptr<Library> Library::ourInstance; | ||
14 | const size_t Library::MaxRecentListSize = 10; | ||
15 | |||
16 | -Library::Library &Library::Instance() { | ||
17 | +Library &Library::Instance() { | ||
18 | if (ourInstance.isNull()) { | ||
19 | ourInstance = new Library(); | ||
20 | } | ||
diff --git a/meta-gpe/recipes-support/fbreader/fbreader_0.12.10.bb b/meta-gpe/recipes-support/fbreader/fbreader_0.12.10.bb new file mode 100644 index 000000000..e9ead0f24 --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/fbreader_0.12.10.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "FBreader is an ebook reader" | ||
2 | HOMEPAGE = "http://www.fbreader.org" | ||
3 | SECTION = "x11/utils" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://fbreader/LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | DEPENDS = "gtk+ enca expat bzip2 libgpewidget virtual/libiconv liblinebreak libfribidi curl sqlite3" | ||
7 | |||
8 | PR = "r1" | ||
9 | |||
10 | SRC_URI = "http://www.fbreader.org/fbreader-sources-${PV}.tgz \ | ||
11 | file://Makefile.patch \ | ||
12 | file://gcc45.patch" | ||
13 | |||
14 | # Set the defaults | ||
15 | READER_RESOLUTION ?= "1024x600" | ||
16 | READER_ARCH ?= "desktop" | ||
17 | READER_UI ?= "gtk" | ||
18 | READER_STATUS ?= "release" | ||
19 | |||
20 | FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary ${libdir}/zlibrary" | ||
21 | FILES_${PN}-dbg += "${libdir}/zlibrary/ui/.debug/" | ||
22 | |||
23 | CFLAGS_append = " RESOLUTION=${READER_RESOLUTION} INSTALLDIR=${prefix}" | ||
24 | EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' LDFLAGS='${LDFLAGS}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'" | ||
25 | |||
26 | inherit pkgconfig | ||
27 | |||
28 | do_configure() { | ||
29 | cd ${WORKDIR}/${PN}-${PV} | ||
30 | mv makefiles/target.mk makefiles/target.mk.orig | ||
31 | |||
32 | echo "TARGET_ARCH = ${READER_ARCH}" > makefiles/target.mk | ||
33 | echo "UI_TYPE = ${READER_UI}" >> makefiles/target.mk | ||
34 | echo "TARGET_STATUS = ${READER_STATUS}" >> makefiles/target.mk | ||
35 | } | ||
36 | |||
37 | do_install() { | ||
38 | oe_runmake install DESTDIR=${D} RESOLUTION=${READER_RESOLUTION} | ||
39 | } | ||
40 | |||
41 | SRC_URI[md5sum] = "da9ec4721efdb0ec0aaa182bff16ad82" | ||
42 | SRC_URI[sha256sum] = "328aec454db80e225aa0b5c31adef74bf62a14357482947e87e9731686b3c624" | ||
diff --git a/meta-gpe/recipes-support/fbreader/fbreader_git.bb b/meta-gpe/recipes-support/fbreader/fbreader_git.bb new file mode 100644 index 000000000..763889a56 --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/fbreader_git.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "FBreader is an ebook reader" | ||
2 | HOMEPAGE = "http://www.fbreader.org" | ||
3 | SECTION = "x11/utils" | ||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://fbreader/LICENSE;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
6 | DEPENDS = "gtk+ enca expat bzip2 libgpewidget virtual/libiconv liblinebreak libfribidi curl sqlite3" | ||
7 | SRCREV = "2cf1ec0e306e1122dbed850bfa005cd59a6168ee" | ||
8 | PV = "0.99.5+gitr${SRCPV}" | ||
9 | |||
10 | PR = "r1" | ||
11 | |||
12 | DEFAULT_PREFERENCE = "-1" | ||
13 | |||
14 | SRC_URI = "git://github.com/geometer/FBReader.git;protocol=http;branch=master \ | ||
15 | file://0001-Fix-installation-of-the-icons-when-RESOLUTION-is-set.patch" | ||
16 | |||
17 | # Set the defaults | ||
18 | READER_RESOLUTION ?= "1024x600" | ||
19 | READER_ARCH ?= "desktop" | ||
20 | READER_UI ?= "gtk" | ||
21 | READER_STATUS ?= "release" | ||
22 | |||
23 | FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary ${libdir}/zlibrary" | ||
24 | FILES_${PN}-dbg += "${libdir}/zlibrary/ui/.debug/" | ||
25 | |||
26 | CFLAGS_append = " RESOLUTION=${READER_RESOLUTION} INSTALLDIR=${prefix}" | ||
27 | EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'" | ||
28 | inherit pkgconfig | ||
29 | |||
30 | S = "${WORKDIR}/git" | ||
31 | |||
32 | do_configure() { | ||
33 | cd "${S}" | ||
34 | |||
35 | echo "TARGET_ARCH = ${READER_ARCH}" > makefiles/target.mk | ||
36 | echo "UI_TYPE = ${READER_UI}" >> makefiles/target.mk | ||
37 | echo "TARGET_STATUS = ${READER_STATUS}" >> makefiles/target.mk | ||
38 | } | ||
39 | |||
40 | do_install() { | ||
41 | oe_runmake install DESTDIR=${D} RESOLUTION=${READER_RESOLUTION} | ||
42 | } | ||
diff --git a/meta-gpe/recipes-support/fbreader/files/0001-Fix-installation-of-the-icons-when-RESOLUTION-is-set.patch b/meta-gpe/recipes-support/fbreader/files/0001-Fix-installation-of-the-icons-when-RESOLUTION-is-set.patch new file mode 100644 index 000000000..f6e12023b --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/files/0001-Fix-installation-of-the-icons-when-RESOLUTION-is-set.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From da4170b61bb41eff0af170d1d77bfd90f9ebe5dd Mon Sep 17 00:00:00 2001 | ||
2 | From: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | ||
3 | Date: Fri, 20 Jan 2012 11:34:42 +0100 | ||
4 | Subject: [PATCH] Fix installation of the icons when RESOLUTION is set | ||
5 | |||
6 | When resolution is set, the following code(in fbreader/Makefile) is executed: | ||
7 | VARIANT = $(TARGET_ARCH) | ||
8 | ifneq "$(RESOLUTION)" "" | ||
9 | VARIANT = $(TARGET_ARCH)_$(RESOLUTION) | ||
10 | endif | ||
11 | |||
12 | This fix is based on a patch from the openembedded project, | ||
13 | which can be found here: | ||
14 | http://cgit.openembedded.org/openembedded/tree/recipes/fbreader/fbreader-0.12.1/Makefile.patch | ||
15 | |||
16 | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | ||
17 | --- | ||
18 | Submitted trough github to git://github.com/geometer/FBReader.git as a pull request | ||
19 | |||
20 | fbreader/Makefile | 4 ++-- | ||
21 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/fbreader/Makefile b/fbreader/Makefile | ||
24 | index bfa9242..03e6cc3 100644 | ||
25 | --- a/fbreader/Makefile | ||
26 | +++ b/fbreader/Makefile | ||
27 | @@ -60,8 +60,8 @@ do_install: | ||
28 | @install -d $(FBSHAREDIR)/resources | ||
29 | @install -m 0644 $(wildcard data/resources/*.xml) $(FBSHAREDIR)/resources | ||
30 | @install -d $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
31 | - @install -m 0644 $(wildcard data/icons/toolbar/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
32 | - @install -m 0644 $(wildcard data/icons/filetree/$(VARIANT)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
33 | + @install -m 0644 $(wildcard data/icons/toolbar/$(TARGET_ARCH)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
34 | + @install -m 0644 $(wildcard data/icons/filetree/$(TARGET_ARCH)/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
35 | @install -m 0644 $(wildcard data/icons/booktree/new/*.*) $(DESTDIR)$(APPIMAGEDIR_REAL) | ||
36 | @make -C $(TARGET_ARCH) RESOLUTION=$(RESOLUTION) install | ||
37 | |||
38 | -- | ||
39 | 1.7.4.1 | ||
40 | |||