diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/puzzles | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/puzzles')
-rw-r--r-- | meta/packages/puzzles/puzzles/game.png | bin | 0 -> 2168 bytes | |||
-rw-r--r-- | meta/packages/puzzles/puzzles_r6727.bb | 45 |
2 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/puzzles/puzzles/game.png b/meta/packages/puzzles/puzzles/game.png new file mode 100644 index 0000000000..9b74f9fce1 --- /dev/null +++ b/meta/packages/puzzles/puzzles/game.png | |||
Binary files differ | |||
diff --git a/meta/packages/puzzles/puzzles_r6727.bb b/meta/packages/puzzles/puzzles_r6727.bb new file mode 100644 index 0000000000..c3725ac8f7 --- /dev/null +++ b/meta/packages/puzzles/puzzles_r6727.bb | |||
@@ -0,0 +1,45 @@ | |||
1 | |||
2 | DEPENDS = "gtk+" | ||
3 | PR = "r2" | ||
4 | |||
5 | SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz \ | ||
6 | file://game.png" | ||
7 | |||
8 | do_compile_prepend = " \ | ||
9 | export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; \ | ||
10 | export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags`'; " | ||
11 | |||
12 | FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps" | ||
13 | |||
14 | do_install () { | ||
15 | export prefix=${D} | ||
16 | export DESTDIR=${D} | ||
17 | install -d ${D}/${prefix} | ||
18 | install -d ${D}/${prefix}/games | ||
19 | oe_runmake install | ||
20 | |||
21 | install -d ${D}/${datadir} | ||
22 | install -d ${D}/${datadir}/applications | ||
23 | install -d ${D}/${datadir}/pixmaps | ||
24 | |||
25 | install ${WORKDIR}/game.png ${D}/${datadir}/pixmaps | ||
26 | |||
27 | cd ${D}/${prefix}/games | ||
28 | for prog in *; do | ||
29 | if [ -x $prog ]; then | ||
30 | echo "making ${D}/${datadir}/applications/$prog.desktop" | ||
31 | cat <<STOP > ${D}/${datadir}/applications/$prog.desktop | ||
32 | [Desktop Entry] | ||
33 | Encoding=UTF-8 | ||
34 | Name=$prog | ||
35 | Exec=${prefix}/games/$prog | ||
36 | Icon=game.png | ||
37 | Terminal=false | ||
38 | Type=Application | ||
39 | Categories=Game | ||
40 | StartupNotify=true | ||
41 | SingleInstance=true | ||
42 | STOP | ||
43 | fi | ||
44 | done | ||
45 | } | ||