summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/puzzles/puzzles_r9306.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/puzzles/puzzles_r9306.bb')
-rw-r--r--meta/recipes-sato/puzzles/puzzles_r9306.bb61
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-sato/puzzles/puzzles_r9306.bb b/meta/recipes-sato/puzzles/puzzles_r9306.bb
new file mode 100644
index 0000000000..ee0c02537a
--- /dev/null
+++ b/meta/recipes-sato/puzzles/puzzles_r9306.bb
@@ -0,0 +1,61 @@
1DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
2HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
3
4DEPENDS = "gtk+ libxt"
5PR = "r0"
6MOD_PV = "${@bb.data.getVar('PV',d,1)[1:]}"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENCE;md5=9928b60f3b78be315b7ab699c1b03ff5"
10
11SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
12
13# Upstream updates puzzles.tar.gz for the new release, so checksums seem to be changing regularly right now
14#SRC_URI[md5sum] = "e8b4c7e2341264789f3cd6733857bf1c"
15#SRC_URI[sha256sum] = "69f37e497e63b2f7ab44e7bbd50aee078269c16dbc2d78ec1b00257678f2cbd2"
16#SRC_URI = "svn://ixion.tartarus.org/main;module=puzzles;rev=${MOD_PV}"
17
18S = "${WORKDIR}/${BPN}-${PV}"
19
20do_configure () {
21 ./mkfiles.pl
22}
23
24do_compile_prepend = " \
25 export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \
26 export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; "
27
28FILES_${PN} = "${prefix}/games/* ${datadir}/applications/*"
29FILES_${PN}-dbg += "${prefix}/games/.debug"
30
31do_install () {
32 rm -rf ${D}/*
33 export prefix=${D}
34 export DESTDIR=${D}
35 install -d ${D}/${prefix}/
36 install -d ${D}/${prefix}/games/
37 oe_runmake install
38
39 install -d ${D}/${datadir}/
40 install -d ${D}/${datadir}/applications/
41
42 cd ${D}/${prefix}/games
43 for prog in *; do
44 if [ -x $prog ]; then
45 # Convert prog to Title Case
46 title=$(echo $prog | sed 's/\(^\| \)./\U&/g')
47 echo "making ${D}/${datadir}/applications/$prog.desktop"
48 cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
49[Desktop Entry]
50Name=$title
51Exec=${prefix}/games/$prog
52Icon=applications-games
53Terminal=false
54Type=Application
55Categories=Game;
56StartupNotify=true
57X-MB-SingleInstance=true
58STOP
59 fi
60 done
61}