diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-17 11:07:45 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-17 11:07:45 +0000 |
commit | d7fca4c40dcb95564df542c6bcdcc5500727fa58 (patch) | |
tree | 7909f33ea9181603dbdc2f80d47e8228d5cceeb7 /meta/packages/puzzles/puzzles_r7593.bb | |
parent | 691cc36ed48daefaac7f9ef99dcb9f985e38fbe4 (diff) | |
download | poky-d7fca4c40dcb95564df542c6bcdcc5500727fa58.tar.gz |
puzzles: r6915 -> r7593
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1746 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/puzzles/puzzles_r7593.bb')
-rw-r--r-- | meta/packages/puzzles/puzzles_r7593.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/packages/puzzles/puzzles_r7593.bb b/meta/packages/puzzles/puzzles_r7593.bb new file mode 100644 index 0000000000..bcb19bae2c --- /dev/null +++ b/meta/packages/puzzles/puzzles_r7593.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | |||
2 | DEPENDS = "gtk+" | ||
3 | PR = "r4" | ||
4 | MOD_PV = "${@bb.data.getVar('PV',d,1)[1:]}" | ||
5 | |||
6 | #SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" | ||
7 | SRC_URI = "svn://ixion.tartarus.org/main;module=puzzles;rev=${MOD_PV} \ | ||
8 | file://makedist_hack.patch;patch=1" | ||
9 | |||
10 | S = "${WORKDIR}/${PN}" | ||
11 | |||
12 | do_configure () { | ||
13 | ./makedist.sh ${MOD_PV} | ||
14 | } | ||
15 | |||
16 | do_compile_prepend = " \ | ||
17 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ | ||
18 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; " | ||
19 | |||
20 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/*" | ||
21 | FILES_${PN}-dbg += "${prefix}/games/.debug" | ||
22 | |||
23 | do_install () { | ||
24 | rm -rf ${D}/* | ||
25 | export prefix=${D} | ||
26 | export DESTDIR=${D} | ||
27 | install -d ${D}/${prefix}/ | ||
28 | install -d ${D}/${prefix}/games/ | ||
29 | oe_runmake install | ||
30 | |||
31 | install -d ${D}/${datadir}/ | ||
32 | install -d ${D}/${datadir}/applications/ | ||
33 | |||
34 | cd ${D}/${prefix}/games | ||
35 | for prog in *; do | ||
36 | if [ -x $prog ]; then | ||
37 | # Convert prog to Title Case | ||
38 | firstchar=${prog:0:1} | ||
39 | title=`echo "$firstchar" | tr a-z A-Z` | ||
40 | title="$title${prog:1}" | ||
41 | echo "making ${D}/${datadir}/applications/$prog.desktop" | ||
42 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | ||
43 | [Desktop Entry] | ||
44 | Encoding=UTF-8 | ||
45 | Name=$title | ||
46 | Exec=${prefix}/games/$prog | ||
47 | Icon=applications-games | ||
48 | Terminal=false | ||
49 | Type=Application | ||
50 | Categories=Game; | ||
51 | StartupNotify=true | ||
52 | SingleInstance=true | ||
53 | STOP | ||
54 | fi | ||
55 | done | ||
56 | } | ||