diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch | 9 | ||||
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_git.bb | 8 |
2 files changed, 6 insertions, 11 deletions
diff --git a/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch b/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch index d246feeb09..c134acde2f 100644 --- a/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch +++ b/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch | |||
@@ -29,15 +29,6 @@ diff --git a/gtk.c b/gtk.c | |||
29 | index a2eba2c..c54bf63 100644 | 29 | index a2eba2c..c54bf63 100644 |
30 | --- a/gtk.c | 30 | --- a/gtk.c |
31 | +++ b/gtk.c | 31 | +++ b/gtk.c |
32 | @@ -381,7 +381,7 @@ static void clear_backing_store(frontend *fe) | ||
33 | |||
34 | static void setup_backing_store(frontend *fe) | ||
35 | { | ||
36 | - cairo_t *cr; | ||
37 | + cairo_t *cr = NULL; | ||
38 | int i; | ||
39 | |||
40 | fe->pixmap = gdk_pixmap_new(fe->area->window, fe->pw, fe->ph, -1); | ||
41 | @@ -2481,7 +2481,7 @@ char *fgetline(FILE *fp) | 32 | @@ -2481,7 +2481,7 @@ char *fgetline(FILE *fp) |
42 | int main(int argc, char **argv) | 33 | int main(int argc, char **argv) |
43 | { | 34 | { |
diff --git a/meta/recipes-sato/puzzles/puzzles_git.bb b/meta/recipes-sato/puzzles/puzzles_git.bb index 56fae88d19..1e3bac7458 100644 --- a/meta/recipes-sato/puzzles/puzzles_git.bb +++ b/meta/recipes-sato/puzzles/puzzles_git.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | SUMMARY = "Simon Tatham's Portable Puzzle Collection" | 1 | SUMMARY = "Simon Tatham's Portable Puzzle Collection" |
2 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" | 2 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" |
3 | 3 | ||
4 | DEPENDS = "gtk+ libxt" | 4 | DEPENDS = "libxt" |
5 | 5 | ||
6 | # The libxt requires x11 in DISTRO_FEATURES | 6 | # The libxt requires x11 in DISTRO_FEATURES |
7 | REQUIRED_DISTRO_FEATURES = "x11" | 7 | REQUIRED_DISTRO_FEATURES = "x11" |
@@ -13,7 +13,7 @@ SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ | |||
13 | file://fix-compiling-failure-with-option-g-O.patch \ | 13 | file://fix-compiling-failure-with-option-g-O.patch \ |
14 | file://0001-Use-labs-instead-of-abs.patch \ | 14 | file://0001-Use-labs-instead-of-abs.patch \ |
15 | " | 15 | " |
16 | SRCREV = "c296301a06ce49b87c954c9d15452521dfeddf1a" | 16 | SRCREV = "346584bf6e38232be8773c24fd7dedcbd7b3d9ed" |
17 | PE = "1" | 17 | PE = "1" |
18 | PV = "0.0+git${SRCPV}" | 18 | PV = "0.0+git${SRCPV}" |
19 | 19 | ||
@@ -21,6 +21,10 @@ S = "${WORKDIR}/git" | |||
21 | 21 | ||
22 | inherit autotools-brokensep distro_features_check | 22 | inherit autotools-brokensep distro_features_check |
23 | 23 | ||
24 | PACKAGECONFIG ??= "gtk2" | ||
25 | PACKAGECONFIG[gtk2] = "--with-gtk=2,,gtk+," | ||
26 | PACKAGECONFIG[gtk3] = "--with-gtk=3,,gtk+3," | ||
27 | |||
24 | do_configure_prepend () { | 28 | do_configure_prepend () { |
25 | ./mkfiles.pl | 29 | ./mkfiles.pl |
26 | } | 30 | } |