summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-09-29 14:40:21 +0000
committerRichard Purdie <richard@openedhand.com>2005-09-29 14:40:21 +0000
commit0bba7f888bd1cd9936b4ddebc8a4b938c8baf156 (patch)
treee124df223fa25f7fd16dd1d98e84d5abac9af1de
parent3ed2b08a5ccc59607793cb5fd587f97cbbb0ecac (diff)
downloadpoky-0bba7f888bd1cd9936b4ddebc8a4b938c8baf156.tar.gz
puzzles: Add desktop files as a new package puzzles-dekstop. Add this to meta-oh + bump PRs
git-svn-id: https://svn.o-hand.com/repos/poky@70 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--openembedded/packages/meta/meta-oh.bb3
-rw-r--r--openembedded/packages/meta/oh-image.bb2
-rw-r--r--openembedded/packages/puzzles/puzzles_r6358.bb33
3 files changed, 32 insertions, 6 deletions
diff --git a/openembedded/packages/meta/meta-oh.bb b/openembedded/packages/meta/meta-oh.bb
index fbde8db5a0..470f78b3dc 100644
--- a/openembedded/packages/meta/meta-oh.bb
+++ b/openembedded/packages/meta/meta-oh.bb
@@ -2,7 +2,7 @@ PACKAGES = "oh-base-depends oh-task-base"
2# oh-task-base 2# oh-task-base
3DESCRIPTION = "Meta-package for OpenHand Palmtop Environment" 3DESCRIPTION = "Meta-package for OpenHand Palmtop Environment"
4MAINTAINER = "Richard Purdie <richard@openedhand.com>" 4MAINTAINER = "Richard Purdie <richard@openedhand.com>"
5PR = "r8" 5PR = "r9"
6 6
7ALLOW_EMPTY = "1" 7ALLOW_EMPTY = "1"
8 8
@@ -32,6 +32,7 @@ oh-task-base = "\
32 gtk-clearlooks-engine \ 32 gtk-clearlooks-engine \
33 eds \ 33 eds \
34 puzzles \ 34 puzzles \
35 puzzles-dekstop \
35 kf \ 36 kf \
36 rxvt-unicode \ 37 rxvt-unicode \
37 xhost \ 38 xhost \
diff --git a/openembedded/packages/meta/oh-image.bb b/openembedded/packages/meta/oh-image.bb
index 60060b90fd..bdfff22af1 100644
--- a/openembedded/packages/meta/oh-image.bb
+++ b/openembedded/packages/meta/oh-image.bb
@@ -1,4 +1,4 @@
1PR = "r3" 1PR = "r4"
2 2
3export IMAGE_BASENAME = "oh-image" 3export IMAGE_BASENAME = "oh-image"
4 4
diff --git a/openembedded/packages/puzzles/puzzles_r6358.bb b/openembedded/packages/puzzles/puzzles_r6358.bb
index 32bd695534..4a39dbff14 100644
--- a/openembedded/packages/puzzles/puzzles_r6358.bb
+++ b/openembedded/packages/puzzles/puzzles_r6358.bb
@@ -1,17 +1,42 @@
1 1
2DEPENDS = "gtk+" 2DEPENDS = "gtk+"
3PR = "r1"
3 4
4SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" 5SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
5 6
6CFLAGS_prepend = " -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags` " 7CFLAGS_prepend = " -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags` "
7do_compile_prepend = " export 'XLDFLAGS=${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; " 8do_compile_prepend = " export 'XLDFLAGS=${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; "
8 9
9FILES_${PN} = "usr/games/*" 10PACKAGES = "${PN} ${PN}-desktop"
11
12FILES_${PN} = "${prefix}/games/*"
13FILES_${PN}-desktop = "${datadir}/applications/*"
10 14
11do_install () { 15do_install () {
12 export prefix=${D} 16 export prefix=${D}
13 export DESTDIR=${D} 17 export DESTDIR=${D}
14 install -d ${D}/usr 18 install -d ${D}/${prefix}
15 install -d ${D}/usr/games 19 install -d ${D}/${prefix}/games
16 oe_runmake install 20 oe_runmake install
21
22 install -d ${D}/${datadir}
23 install -d ${D}/${datadir}/applications
24 cd ${D}/${prefix}/games
25
26 for prog in *; do
27 if [ -x $prog ]; then
28 echo "making ${D}/${datadir}/applications/$prog.desktop"
29 cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
30[Desktop Entry]
31Encoding=UTF-8
32Name=$prog
33Exec=${prefix}/games/$prog
34Icon=game.png
35Terminal=false
36Type=Application
37Categories=Game
38StartupNotify=true
39STOP
40 fi
41 done
17} 42}