diff options
author | Richard Purdie <richard@openedhand.com> | 2005-09-29 14:40:21 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-09-29 14:40:21 +0000 |
commit | 0bba7f888bd1cd9936b4ddebc8a4b938c8baf156 (patch) | |
tree | e124df223fa25f7fd16dd1d98e84d5abac9af1de | |
parent | 3ed2b08a5ccc59607793cb5fd587f97cbbb0ecac (diff) | |
download | poky-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.bb | 3 | ||||
-rw-r--r-- | openembedded/packages/meta/oh-image.bb | 2 | ||||
-rw-r--r-- | openembedded/packages/puzzles/puzzles_r6358.bb | 33 |
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 |
3 | DESCRIPTION = "Meta-package for OpenHand Palmtop Environment" | 3 | DESCRIPTION = "Meta-package for OpenHand Palmtop Environment" |
4 | MAINTAINER = "Richard Purdie <richard@openedhand.com>" | 4 | MAINTAINER = "Richard Purdie <richard@openedhand.com>" |
5 | PR = "r8" | 5 | PR = "r9" |
6 | 6 | ||
7 | ALLOW_EMPTY = "1" | 7 | ALLOW_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 @@ | |||
1 | PR = "r3" | 1 | PR = "r4" |
2 | 2 | ||
3 | export IMAGE_BASENAME = "oh-image" | 3 | export 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 | ||
2 | DEPENDS = "gtk+" | 2 | DEPENDS = "gtk+" |
3 | PR = "r1" | ||
3 | 4 | ||
4 | SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" | 5 | SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz" |
5 | 6 | ||
6 | CFLAGS_prepend = " -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags` " | 7 | CFLAGS_prepend = " -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags` " |
7 | do_compile_prepend = " export 'XLDFLAGS=${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; " | 8 | do_compile_prepend = " export 'XLDFLAGS=${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; " |
8 | 9 | ||
9 | FILES_${PN} = "usr/games/*" | 10 | PACKAGES = "${PN} ${PN}-desktop" |
11 | |||
12 | FILES_${PN} = "${prefix}/games/*" | ||
13 | FILES_${PN}-desktop = "${datadir}/applications/*" | ||
10 | 14 | ||
11 | do_install () { | 15 | do_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] | ||
31 | Encoding=UTF-8 | ||
32 | Name=$prog | ||
33 | Exec=${prefix}/games/$prog | ||
34 | Icon=game.png | ||
35 | Terminal=false | ||
36 | Type=Application | ||
37 | Categories=Game | ||
38 | StartupNotify=true | ||
39 | STOP | ||
40 | fi | ||
41 | done | ||
17 | } | 42 | } |