diff options
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r-- | meta/recipes-sato/matchbox-keyboard/files/png-fix.patch | 49 | ||||
-rw-r--r-- | meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb | 5 |
2 files changed, 52 insertions, 2 deletions
diff --git a/meta/recipes-sato/matchbox-keyboard/files/png-fix.patch b/meta/recipes-sato/matchbox-keyboard/files/png-fix.patch new file mode 100644 index 0000000000..e3834f5e46 --- /dev/null +++ b/meta/recipes-sato/matchbox-keyboard/files/png-fix.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | Change matchbox-keyboard to look for "libpng" instead of "libpng12", and fix the | ||
2 | code so that it works with the 1.2 and 1.5 API. | ||
3 | |||
4 | Upstream-Status: Backport | ||
5 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
6 | |||
7 | diff --git a/configure.ac b/configure.ac | ||
8 | index 9678cf7..9bbbd76 100644 | ||
9 | --- a/configure.ac | ||
10 | +++ b/configure.ac | ||
11 | @@ -171,24 +171,7 @@ dnl ------ Expat ------------------------------------------------------------ | ||
12 | |||
13 | dnl ------ Check for PNG --------------------------------------------------- | ||
14 | |||
15 | -AC_MSG_CHECKING(for libpng12) | ||
16 | - | ||
17 | -if $PKG_CONFIG --exists libpng12; then | ||
18 | - AC_MSG_RESULT(yes) | ||
19 | - PNG_LIBS=`$PKG_CONFIG --libs libpng12` | ||
20 | - PNG_CFLAGS=`$PKG_CONFIG --cflags libpng12` | ||
21 | -else | ||
22 | - AC_MSG_RESULT(no) | ||
23 | - AC_CHECK_LIB([png], [png_create_read_struct], | ||
24 | - [have_png="yes"], [have_png="no"]) | ||
25 | - | ||
26 | - if test x$have_png=xyes && test x$have_png_h=xyes; then | ||
27 | - PNG_LIBS="-lpng -lz" | ||
28 | - else | ||
29 | - AC_MSG_ERROR([*** Cannot find libpng12 ****]) | ||
30 | - fi | ||
31 | -fi | ||
32 | - | ||
33 | +PKG_CHECK_MODULES(PNG, libpng) | ||
34 | |||
35 | dnl ------ Debug Build ------------------------------------------------------ | ||
36 | |||
37 | diff --git a/src/matchbox-keyboard-image.c b/src/matchbox-keyboard-image.c | ||
38 | index 8accc3e..6b4b0e8 100644 | ||
39 | --- a/src/matchbox-keyboard-image.c | ||
40 | +++ b/src/matchbox-keyboard-image.c | ||
41 | @@ -65,7 +65,7 @@ png_file_load (const char *file, | ||
42 | return NULL; | ||
43 | } | ||
44 | |||
45 | - if ( setjmp( png_ptr->jmpbuf ) ) { | ||
46 | + if (setjmp (png_jmpbuf (png_ptr))) { | ||
47 | png_destroy_read_struct( &png_ptr, &info_ptr, NULL); | ||
48 | fclose(fd); | ||
49 | return NULL; | ||
diff --git a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb index 430e343b9c..adde25bcf0 100644 --- a/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb +++ b/meta/recipes-sato/matchbox-keyboard/matchbox-keyboard_git.bb | |||
@@ -12,12 +12,13 @@ RDEPENDS_${PN} = "formfactor dbus-wait" | |||
12 | SECTION = "x11" | 12 | SECTION = "x11" |
13 | SRCREV = "b38f24036cff3be6c2fbcf9ca9881803e69003ac" | 13 | SRCREV = "b38f24036cff3be6c2fbcf9ca9881803e69003ac" |
14 | PV = "0.0+git${SRCPV}" | 14 | PV = "0.0+git${SRCPV}" |
15 | PR = "r3" | 15 | PR = "r4" |
16 | 16 | ||
17 | SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \ | 17 | SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \ |
18 | file://configure_fix.patch;maxrev=1819 \ | 18 | file://configure_fix.patch;maxrev=1819 \ |
19 | file://single-instance.patch \ | 19 | file://single-instance.patch \ |
20 | file://80matchboxkeyboard.shbg" | 20 | file://80matchboxkeyboard.shbg \ |
21 | file://png-fix.patch" | ||
21 | 22 | ||
22 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
23 | 24 | ||