diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2012-11-14 13:34:27 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-12-04 11:25:35 +0100 |
commit | 31cec2ac2ea0533d0734c7d2214ea3d2aa8c13e9 (patch) | |
tree | 003d872906fe97c01e4dbac1ec0e36940a40fb34 /meta-gpe/recipes-support | |
parent | de7c5162f83bc4e9eb6ecb9d8e8717049bb8df00 (diff) | |
download | meta-openembedded-31cec2ac2ea0533d0734c7d2214ea3d2aa8c13e9.tar.gz |
fbreader: move to meta-gpe due to libgpewidget dependency
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Diffstat (limited to 'meta-gpe/recipes-support')
5 files changed, 163 insertions, 0 deletions
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..478684664 --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/fbreader_0.12.10.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "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" | ||
7 | |||
8 | SRC_URI = "http://www.fbreader.org/fbreader-sources-${PV}.tgz \ | ||
9 | file://Makefile.patch \ | ||
10 | file://gcc45.patch" | ||
11 | |||
12 | # Set the defaults | ||
13 | READER_RESOLUTION ?= "1024x600" | ||
14 | READER_ARCH ?= "desktop" | ||
15 | READER_UI ?= "gtk" | ||
16 | READER_STATUS ?= "release" | ||
17 | |||
18 | FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary ${libdir}/zlibrary" | ||
19 | FILES_${PN}-dbg += "${libdir}/zlibrary/ui/.debug/" | ||
20 | |||
21 | CFLAGS_append = " RESOLUTION=${READER_RESOLUTION} INSTALLDIR=${prefix}" | ||
22 | EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' LDFLAGS='${LDFLAGS}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'" | ||
23 | |||
24 | inherit pkgconfig | ||
25 | |||
26 | do_configure() { | ||
27 | cd ${WORKDIR}/${PN}-${PV} | ||
28 | mv makefiles/target.mk makefiles/target.mk.orig | ||
29 | |||
30 | echo "TARGET_ARCH = ${READER_ARCH}" > makefiles/target.mk | ||
31 | echo "UI_TYPE = ${READER_UI}" >> makefiles/target.mk | ||
32 | echo "TARGET_STATUS = ${READER_STATUS}" >> makefiles/target.mk | ||
33 | } | ||
34 | |||
35 | do_install() { | ||
36 | oe_runmake install DESTDIR=${D} RESOLUTION=${READER_RESOLUTION} | ||
37 | } | ||
38 | |||
39 | SRC_URI[md5sum] = "da9ec4721efdb0ec0aaa182bff16ad82" | ||
40 | 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..937bdc828 --- /dev/null +++ b/meta-gpe/recipes-support/fbreader/fbreader_git.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | DESCRIPTION = "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" | ||
7 | SRCREV = "2cf1ec0e306e1122dbed850bfa005cd59a6168ee" | ||
8 | PV = "0.99.5+gitr${SRCPV}" | ||
9 | PR = "r0" | ||
10 | |||
11 | DEFAULT_PREFERENCE = "-1" | ||
12 | |||
13 | SRC_URI = "git://github.com/geometer/FBReader.git;protocol=http;branch=master \ | ||
14 | file://0001-Fix-installation-of-the-icons-when-RESOLUTION-is-set.patch" | ||
15 | |||
16 | # Set the defaults | ||
17 | READER_RESOLUTION ?= "1024x600" | ||
18 | READER_ARCH ?= "desktop" | ||
19 | READER_UI ?= "gtk" | ||
20 | READER_STATUS ?= "release" | ||
21 | |||
22 | FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary ${libdir}/zlibrary" | ||
23 | FILES_${PN}-dbg += "${libdir}/zlibrary/ui/.debug/" | ||
24 | |||
25 | CFLAGS_append = " RESOLUTION=${READER_RESOLUTION} INSTALLDIR=${prefix}" | ||
26 | EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'" | ||
27 | inherit pkgconfig | ||
28 | |||
29 | S = "${WORKDIR}/git" | ||
30 | |||
31 | do_configure() { | ||
32 | cd "${S}" | ||
33 | |||
34 | echo "TARGET_ARCH = ${READER_ARCH}" > makefiles/target.mk | ||
35 | echo "UI_TYPE = ${READER_UI}" >> makefiles/target.mk | ||
36 | echo "TARGET_STATUS = ${READER_STATUS}" >> makefiles/target.mk | ||
37 | } | ||
38 | |||
39 | do_install() { | ||
40 | oe_runmake install DESTDIR=${D} RESOLUTION=${READER_RESOLUTION} | ||
41 | } | ||
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 | |||