2010-11-30 08:34:52 +00:00
|
|
|
DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
|
|
|
|
HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
|
2005-09-29 13:02:05 +00:00
|
|
|
|
2008-07-02 14:20:11 +00:00
|
|
|
DEPENDS = "gtk+ libxt"
|
2011-12-30 01:37:30 +00:00
|
|
|
PR = "r0"
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
MOD_PV = "${@d.getVar('PV',1)[1:]}"
|
2005-09-29 14:30:08 +00:00
|
|
|
|
2010-09-30 18:00:19 +00:00
|
|
|
LICENSE = "MIT"
|
2012-12-03 15:34:42 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=31790deb1e1aac4626e7d1bc04587eb0"
|
2010-09-30 18:00:19 +00:00
|
|
|
|
2011-04-14 07:41:30 +00:00
|
|
|
# Upstream updates puzzles.tar.gz for the new release, so checksums seem to be changing regularly right now
|
2012-07-20 05:23:00 +00:00
|
|
|
SRC_URI = "svn://svn.tartarus.org/sgt;module=puzzles;rev=${MOD_PV};protocol=svn"
|
2012-07-12 15:17:13 +00:00
|
|
|
S = "${WORKDIR}/${BPN}"
|
2011-12-06 02:17:59 +00:00
|
|
|
|
2012-07-12 15:17:13 +00:00
|
|
|
#SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
|
|
|
|
#SRC_URI[md5sum] = "9d84769562007e0f99edac77a3b2d27c"
|
|
|
|
#SRC_URI[sha256sum] = "b688b5196f8406a23741e973178bdde78e5f8af4d2a88c33ca1ae1cc1a069d15"
|
|
|
|
#S = "${WORKDIR}/${BPN}-${PV}"
|
2007-05-17 11:00:45 +00:00
|
|
|
|
|
|
|
do_configure () {
|
2010-11-30 08:34:52 +00:00
|
|
|
./mkfiles.pl
|
2007-05-17 11:00:45 +00:00
|
|
|
}
|
2005-09-29 13:02:05 +00:00
|
|
|
|
2005-09-30 14:28:18 +00:00
|
|
|
do_compile_prepend = " \
|
2006-11-25 10:01:30 +00:00
|
|
|
export XLDFLAGS='${LDFLAGS} `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --libs`'; \
|
2011-12-01 14:26:44 +00:00
|
|
|
export XLFLAGS=-lm \
|
2006-11-25 10:01:30 +00:00
|
|
|
export CFLAGS='${CFLAGS} -I./ `${STAGING_BINDIR_NATIVE}/pkg-config gtk+-2.0 --cflags`'; "
|
2005-09-29 13:02:05 +00:00
|
|
|
|
2007-04-10 15:02:46 +00:00
|
|
|
FILES_${PN} = "${prefix}/games/* ${datadir}/applications/*"
|
2006-10-29 09:54:31 +00:00
|
|
|
FILES_${PN}-dbg += "${prefix}/games/.debug"
|
2005-09-29 18:45:16 +00:00
|
|
|
|
2005-09-29 13:02:05 +00:00
|
|
|
do_install () {
|
2006-10-29 09:54:31 +00:00
|
|
|
rm -rf ${D}/*
|
2005-09-29 13:02:05 +00:00
|
|
|
export prefix=${D}
|
|
|
|
export DESTDIR=${D}
|
2006-10-29 09:54:31 +00:00
|
|
|
install -d ${D}/${prefix}/
|
|
|
|
install -d ${D}/${prefix}/games/
|
2005-09-29 14:40:21 +00:00
|
|
|
oe_runmake install
|
|
|
|
|
2006-10-29 09:54:31 +00:00
|
|
|
install -d ${D}/${datadir}/
|
|
|
|
install -d ${D}/${datadir}/applications/
|
2005-09-29 14:40:21 +00:00
|
|
|
|
2005-09-30 14:28:18 +00:00
|
|
|
cd ${D}/${prefix}/games
|
2005-09-29 14:40:21 +00:00
|
|
|
for prog in *; do
|
|
|
|
if [ -x $prog ]; then
|
2007-05-17 11:00:45 +00:00
|
|
|
# Convert prog to Title Case
|
2007-06-29 10:23:37 +00:00
|
|
|
title=$(echo $prog | sed 's/\(^\| \)./\U&/g')
|
2005-09-29 14:40:21 +00:00
|
|
|
echo "making ${D}/${datadir}/applications/$prog.desktop"
|
|
|
|
cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
|
|
|
|
[Desktop Entry]
|
2007-05-17 11:00:45 +00:00
|
|
|
Name=$title
|
2005-09-29 14:40:21 +00:00
|
|
|
Exec=${prefix}/games/$prog
|
2007-04-10 14:15:01 +00:00
|
|
|
Icon=applications-games
|
2005-09-29 14:40:21 +00:00
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
2007-03-16 10:19:19 +00:00
|
|
|
Categories=Game;
|
2005-09-29 14:40:21 +00:00
|
|
|
StartupNotify=true
|
2007-09-27 09:09:33 +00:00
|
|
|
X-MB-SingleInstance=true
|
2005-09-29 14:40:21 +00:00
|
|
|
STOP
|
|
|
|
fi
|
|
|
|
done
|
2005-09-29 13:02:05 +00:00
|
|
|
}
|