summaryrefslogtreecommitdiffstats
path: root/meta/packages/puzzles
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/puzzles
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-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.pngbin0 -> 2168 bytes
-rw-r--r--meta/packages/puzzles/puzzles_r6727.bb45
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
2DEPENDS = "gtk+"
3PR = "r2"
4
5SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz \
6 file://game.png"
7
8do_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
12FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps"
13
14do_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]
33Encoding=UTF-8
34Name=$prog
35Exec=${prefix}/games/$prog
36Icon=game.png
37Terminal=false
38Type=Application
39Categories=Game
40StartupNotify=true
41SingleInstance=true
42STOP
43 fi
44 done
45}