diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2006-05-22 12:11:05 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-05-22 12:11:05 +0000 |
commit | faa5934ae5ef894345ab58cfc86bca2822e6da8d (patch) | |
tree | c729331531843c94535c88211dde63e57cdba616 /packages/puzzles | |
parent | 087e914265f66c12ecbb64c8132e6e7237d4a3d8 (diff) |
puzzles: added r6712 - fetching from SVN
Diffstat (limited to 'packages/puzzles')
-rw-r--r-- | packages/puzzles/puzzles_r6712.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/puzzles/puzzles_r6712.bb b/packages/puzzles/puzzles_r6712.bb new file mode 100644 index 0000000000..fe641570e2 --- /dev/null +++ b/packages/puzzles/puzzles_r6712.bb @@ -0,0 +1,50 @@ + +DEPENDS = "gtk+ perl-native" + +SRC_URI = "svn://ixion.tartarus.org/main;module=puzzles;rev=6712 \ + file://game.png" + +S = "${WORKDIR}/puzzles/" + +do_configure() { + cd ${S} && ${STAGING_BINDIR}/perl mkfiles.pl +} + +do_compile_prepend = " \ + export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; \ + export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags`'; " + +FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps" + +do_install () { + export prefix=${D} + export DESTDIR=${D} + install -d ${D}/${prefix} + install -d ${D}/${prefix}/games + oe_runmake install + + install -d ${D}/${datadir} + install -d ${D}/${datadir}/applications + install -d ${D}/${datadir}/pixmaps + + install ${WORKDIR}/game.png ${D}/${datadir}/pixmaps + + cd ${D}/${prefix}/games + for prog in *; do + if [ -x $prog ]; then + echo "making ${D}/${datadir}/applications/$prog.desktop" + cat <<STOP > ${D}/${datadir}/applications/$prog.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=$prog +Exec=${prefix}/games/$prog +Icon=game.png +Terminal=false +Type=Application +Categories=Game +StartupNotify=true +SingleInstance=true +STOP + fi + done +} |