summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-05-23 13:00:35 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-23 13:00:35 +0000
commitb8a4d3b5d0cdd2db7949e9f04288596683ef4fce (patch)
tree870c568949d81e2b127e3823901a7c9ae31c75a7
parent304ff20aad7473e459bc3cc623353a412fa60eab (diff)
parentb1080b90c5735a7a28cafe57659544a8518f57c1 (diff)
merge of aa208c78dc9ba6e2c8b7c157a2a98c6ea5f507fb
and f87d9b990300072e37071e6934f7af60c67bb40a
-rw-r--r--packages/puzzles/puzzles_r6712.bb50
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
+}