2005-09-29 13:02:05 +00:00
|
|
|
|
2005-09-29 14:30:08 +00:00
|
|
|
DEPENDS = "gtk+"
|
2007-04-10 14:13:05 +00:00
|
|
|
PR = "r3"
|
2005-09-29 14:30:08 +00:00
|
|
|
|
2007-04-10 14:13:05 +00:00
|
|
|
SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
|
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
|
|
|
|
2005-09-30 14:28:18 +00:00
|
|
|
FILES_${PN} = "${prefix}/games/* ${datadir}/applications/* ${datadir}/pixmaps"
|
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/
|
|
|
|
install -d ${D}/${datadir}/pixmaps/
|
2005-09-30 14:28:18 +00:00
|
|
|
|
2006-10-29 09:54:31 +00:00
|
|
|
install ${WORKDIR}/game.png ${D}/${datadir}/pixmaps/
|
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
|
|
|
|
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
|
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
|
2005-10-03 11:30:44 +00:00
|
|
|
SingleInstance=true
|
2005-09-29 14:40:21 +00:00
|
|
|
STOP
|
|
|
|
fi
|
|
|
|
done
|
2005-09-29 13:02:05 +00:00
|
|
|
}
|