From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/puzzles/puzzles_r7436.bb | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 recipes/puzzles/puzzles_r7436.bb (limited to 'recipes/puzzles/puzzles_r7436.bb') diff --git a/recipes/puzzles/puzzles_r7436.bb b/recipes/puzzles/puzzles_r7436.bb new file mode 100644 index 0000000000..fc2997fcf8 --- /dev/null +++ b/recipes/puzzles/puzzles_r7436.bb @@ -0,0 +1,56 @@ + +DEPENDS = "gtk+ libxt" + +PR = "r3" + +SVN_REV = "${@bb.data.getVar('PV',d,1).replace('r', '')}" + +SRC_URI = "svn://ixion.tartarus.org/main;module=puzzles;proto=svn;rev=${SVN_REV} \ + file://game.png" + +S = "${WORKDIR}/puzzles" + +do_configure () { + ./mkfiles.pl +} + +do_compile_prepend = " \ + export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \ + export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; " + +FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps" +FILES_${PN}-dbg += "${prefix}/games/.debug" + +do_install () { + rm -rf ${D}/* + 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 < ${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 +} -- cgit v1.2.3