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"
|
2010-11-30 08:34:52 +00:00
|
|
|
PR = "r0"
|
2007-05-17 11:00:45 +00:00
|
|
|
MOD_PV = "${@bb.data.getVar('PV',d,1)[1:]}"
|
2005-09-29 14:30:08 +00:00
|
|
|
|
2010-09-30 18:00:19 +00:00
|
|
|
LICENSE = "MIT"
|
2010-11-30 08:34:52 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=9928b60f3b78be315b7ab699c1b03ff5"
|
2010-09-30 18:00:19 +00:00
|
|
|
|
2010-11-30 08:34:52 +00:00
|
|
|
SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
|
2010-12-08 04:06:29 +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
|
2011-01-16 22:06:24 +00:00
|
|
|
#SRC_URI[md5sum] = "e8b4c7e2341264789f3cd6733857bf1c"
|
|
|
|
#SRC_URI[sha256sum] = "69f37e497e63b2f7ab44e7bbd50aee078269c16dbc2d78ec1b00257678f2cbd2"
|
2010-11-30 08:34:52 +00:00
|
|
|
#SRC_URI = "svn://ixion.tartarus.org/main;module=puzzles;rev=${MOD_PV}"
|
2007-05-17 11:00:45 +00:00
|
|
|
|
2011-07-28 13:28:20 +00:00
|
|
|
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`'; \
|
|
|
|
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
|
|
|
}
|