diff options
author | Marius Avram <marius.avram@intel.com> | 2014-02-06 12:54:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-13 11:41:22 +0000 |
commit | 0fc98a618ec13c07c247bfdb368a89d66d1704b6 (patch) | |
tree | 79b5e73c85b98f680c4ff642b027617789c8f71f /meta/recipes-sato | |
parent | d5909eb578020c1f888247172dafd804fda57720 (diff) | |
download | poky-0fc98a618ec13c07c247bfdb368a89d66d1704b6.tar.gz |
puzzles: upgrade to r10116
License has not changed.
Contains changes to the building system.
(From OE-Core rev: c855431a88ee68b39249a48aa6a8b62b225f0dd2)
Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_r10116.bb | 53 | ||||
-rw-r--r-- | meta/recipes-sato/puzzles/puzzles_r9765.bb | 61 |
2 files changed, 53 insertions, 61 deletions
diff --git a/meta/recipes-sato/puzzles/puzzles_r10116.bb b/meta/recipes-sato/puzzles/puzzles_r10116.bb new file mode 100644 index 0000000000..842c648be5 --- /dev/null +++ b/meta/recipes-sato/puzzles/puzzles_r10116.bb | |||
@@ -0,0 +1,53 @@ | |||
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 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://LICENCE;md5=33bcd4bce8f3c197f2aefbdbd2d299bc" | ||
9 | |||
10 | SRC_URI = "svn://svn.tartarus.org/sgt;module=puzzles;rev=${MOD_PV}" | ||
11 | |||
12 | S = "${WORKDIR}/${BPN}" | ||
13 | |||
14 | inherit autotools | ||
15 | |||
16 | do_configure_prepend () { | ||
17 | ./mkfiles.pl | ||
18 | } | ||
19 | |||
20 | FILES_${PN} = "${prefix}/bin/* ${datadir}/applications/*" | ||
21 | FILES_${PN}-dbg += "${prefix}/bin/.debug" | ||
22 | |||
23 | do_install () { | ||
24 | rm -rf ${D}/* | ||
25 | export prefix=${D} | ||
26 | export DESTDIR=${D} | ||
27 | install -d ${D}/${prefix}/bin/ | ||
28 | oe_runmake install | ||
29 | |||
30 | |||
31 | install -d ${D}/${datadir}/applications/ | ||
32 | |||
33 | # Create desktop shortcuts | ||
34 | cd ${D}/${prefix}/bin | ||
35 | for prog in *; do | ||
36 | if [ -x $prog ]; then | ||
37 | # Convert prog to Title Case | ||
38 | title=$(echo $prog | sed 's/\(^\| \)./\U&/g') | ||
39 | echo "making ${D}/${datadir}/applications/$prog.desktop" | ||
40 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | ||
41 | [Desktop Entry] | ||
42 | Name=$title | ||
43 | Exec=${prefix}/bin/$prog | ||
44 | Icon=applications-games | ||
45 | Terminal=false | ||
46 | Type=Application | ||
47 | Categories=Game; | ||
48 | StartupNotify=true | ||
49 | X-MB-SingleInstance=true | ||
50 | STOP | ||
51 | fi | ||
52 | done | ||
53 | } | ||
diff --git a/meta/recipes-sato/puzzles/puzzles_r9765.bb b/meta/recipes-sato/puzzles/puzzles_r9765.bb deleted file mode 100644 index 5e972ec47b..0000000000 --- a/meta/recipes-sato/puzzles/puzzles_r9765.bb +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
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 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://LICENCE;md5=31790deb1e1aac4626e7d1bc04587eb0" | ||
9 | |||
10 | # Upstream updates puzzles.tar.gz for the new release, so checksums seem to be changing regularly right now | ||
11 | SRC_URI = "svn://svn.tartarus.org/sgt;module=puzzles;rev=${MOD_PV}" | ||
12 | S = "${WORKDIR}/${BPN}" | ||
13 | |||
14 | #SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" | ||
15 | #SRC_URI[md5sum] = "9d84769562007e0f99edac77a3b2d27c" | ||
16 | #SRC_URI[sha256sum] = "b688b5196f8406a23741e973178bdde78e5f8af4d2a88c33ca1ae1cc1a069d15" | ||
17 | #S = "${WORKDIR}/${BPN}-${PV}" | ||
18 | |||
19 | do_configure () { | ||
20 | ./mkfiles.pl | ||
21 | } | ||
22 | |||
23 | do_compile_prepend = " \ | ||
24 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ | ||
25 | export XLFLAGS=-lm \ | ||
26 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; " | ||
27 | |||
28 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/*" | ||
29 | FILES_${PN}-dbg += "${prefix}/games/.debug" | ||
30 | |||
31 | do_install () { | ||
32 | rm -rf ${D}/* | ||
33 | export prefix=${D} | ||
34 | export DESTDIR=${D} | ||
35 | install -d ${D}/${prefix}/ | ||
36 | install -d ${D}/${prefix}/games/ | ||
37 | oe_runmake install | ||
38 | |||
39 | install -d ${D}/${datadir}/ | ||
40 | install -d ${D}/${datadir}/applications/ | ||
41 | |||
42 | cd ${D}/${prefix}/games | ||
43 | for prog in *; do | ||
44 | if [ -x $prog ]; then | ||
45 | # Convert prog to Title Case | ||
46 | title=$(echo $prog | sed 's/\(^\| \)./\U&/g') | ||
47 | echo "making ${D}/${datadir}/applications/$prog.desktop" | ||
48 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | ||
49 | [Desktop Entry] | ||
50 | Name=$title | ||
51 | Exec=${prefix}/games/$prog | ||
52 | Icon=applications-games | ||
53 | Terminal=false | ||
54 | Type=Application | ||
55 | Categories=Game; | ||
56 | StartupNotify=true | ||
57 | X-MB-SingleInstance=true | ||
58 | STOP | ||
59 | fi | ||
60 | done | ||
61 | } | ||