diff options
author | Ross Burton <ross.burton@intel.com> | 2015-05-20 21:17:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-22 13:29:48 +0100 |
commit | b7a051f15be53fdacdd55e8ce0dee3c0a8a52279 (patch) | |
tree | 3b1c33b4b48e50ae981141c0d049056f7aacb2a6 /meta/recipes-sato/puzzles/puzzles_r10286.bb | |
parent | 9d8c61acd0b3470bd4e64664aa85e475ec07d647 (diff) | |
download | poky-b7a051f15be53fdacdd55e8ce0dee3c0a8a52279.tar.gz |
puzzles: upgrade to latest srcrev
(From OE-Core rev: 150853c3726a95d36329186c0c94c19474d90383)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/puzzles/puzzles_r10286.bb')
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_r10286.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-sato/puzzles/puzzles_r10286.bb b/meta/recipes-sato/puzzles/puzzles_r10286.bb new file mode 100644 index 0000000000..1ad8d1bf14 --- /dev/null +++ b/meta/recipes-sato/puzzles/puzzles_r10286.bb | |||
@@ -0,0 +1,59 @@ | |||
1 | SUMMARY = "Simon Tatham's Portable Puzzle Collection" | ||
2 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" | ||
3 | |||
4 | DEPENDS = "gtk+ libxt" | ||
5 | MOD_PV = "${@d.getVar('PV',1)[1:]}" | ||
6 | |||
7 | # The libxt requires x11 in DISTRO_FEATURES | ||
8 | REQUIRED_DISTRO_FEATURES = "x11" | ||
9 | |||
10 | LICENSE = "MIT" | ||
11 | LIC_FILES_CHKSUM = "file://LICENCE;md5=33bcd4bce8f3c197f2aefbdbd2d299bc" | ||
12 | |||
13 | SRC_URI = "svn://svn.tartarus.org/sgt;module=puzzles;rev=${MOD_PV} \ | ||
14 | file://fix-compiling-failure-with-option-g-O.patch \ | ||
15 | file://puzzles_x32_abi_time.patch \ | ||
16 | " | ||
17 | |||
18 | S = "${WORKDIR}/${BPN}" | ||
19 | |||
20 | inherit autotools-brokensep distro_features_check | ||
21 | |||
22 | do_configure_prepend () { | ||
23 | ./mkfiles.pl | ||
24 | } | ||
25 | |||
26 | FILES_${PN} = "${prefix}/bin/* ${datadir}/applications/*" | ||
27 | FILES_${PN}-dbg += "${prefix}/bin/.debug" | ||
28 | |||
29 | do_install () { | ||
30 | rm -rf ${D}/* | ||
31 | export prefix=${D} | ||
32 | export DESTDIR=${D} | ||
33 | install -d ${D}/${prefix}/bin/ | ||
34 | oe_runmake install | ||
35 | |||
36 | |||
37 | install -d ${D}/${datadir}/applications/ | ||
38 | |||
39 | # Create desktop shortcuts | ||
40 | cd ${D}/${prefix}/bin | ||
41 | for prog in *; do | ||
42 | if [ -x $prog ]; then | ||
43 | # Convert prog to Title Case | ||
44 | title=$(echo $prog | sed 's/\(^\| \)./\U&/g') | ||
45 | echo "making ${D}/${datadir}/applications/$prog.desktop" | ||
46 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | ||
47 | [Desktop Entry] | ||
48 | Name=$title | ||
49 | Exec=${prefix}/bin/$prog | ||
50 | Icon=applications-games | ||
51 | Terminal=false | ||
52 | Type=Application | ||
53 | Categories=Game; | ||
54 | StartupNotify=true | ||
55 | X-MB-SingleInstance=true | ||
56 | STOP | ||
57 | fi | ||
58 | done | ||
59 | } | ||