summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-05-23 09:02:18 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-23 09:02:18 +0000
commitb1080b90c5735a7a28cafe57659544a8518f57c1 (patch)
treec3c30cc074fc01002c31c5e31a631578dce704ff /packages
parentb2b279135a4934b02da70e72037aeaf5af95478b (diff)
parentfaa5934ae5ef894345ab58cfc86bca2822e6da8d (diff)
merge of ae422df79b5b9f0a401e9a4e9ae694ece441d33e
and f3fea5653b417f0d915e521ea668b6fbf17851df
Diffstat (limited to 'packages')
-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
+}