From bc2964257f4fe309ef98c0a0f2dba6d807995208 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 24 Dec 2012 08:14:57 +0100 Subject: [PATCH] Add pingus version 0.7.6 This commit was made by using and modifying the pingus recipe comming from oe-classic at the following revision: 07069799d5e9688e24b4dc2d5253aea2e96dd4a7 The version.patch is for errors like: error: unable to find string literal operator 'operator"" VERSION' Pingus was tested on the om-gta04 machine (from meta-smartphone/meta-openmoko) with the following command line: pingus -d /usr/share/pingus/data/ --no-auto-scrolling -m -f -R 480x640 And with a bluetooth keyboard because the screen was too small to display the button used to enter a map. The .desktop file is generic tough. Signed-off-by: Denis 'GNUtoo' Carikli --- recipes-games/pingus/pingus/pingus.desktop | 11 +++++++ recipes-games/pingus/pingus/pingus.png | Bin 0 -> 3490 bytes recipes-games/pingus/pingus/version.patch | 29 +++++++++++++++++ recipes-games/pingus/pingus_0.7.6.bb | 35 +++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 recipes-games/pingus/pingus/pingus.desktop create mode 100644 recipes-games/pingus/pingus/pingus.png create mode 100644 recipes-games/pingus/pingus/version.patch create mode 100644 recipes-games/pingus/pingus_0.7.6.bb diff --git a/recipes-games/pingus/pingus/pingus.desktop b/recipes-games/pingus/pingus/pingus.desktop new file mode 100644 index 0000000..20a1de2 --- /dev/null +++ b/recipes-games/pingus/pingus/pingus.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=0.7.2 +Name=Pingus +GenericName=Lemmings Clone +Comment=Pingus is a free Lemmings-like game +Icon=pingus +Exec=pingus -d /usr/share/pingus/data/ -f -g 640x480 -m +Terminal=false +StartupNotify=false +Categories=Application;Games;ArcadeGame; diff --git a/recipes-games/pingus/pingus/pingus.png b/recipes-games/pingus/pingus/pingus.png new file mode 100644 index 0000000000000000000000000000000000000000..020b0ebb2bf1b639af60cac381b9a97f9ab14316 GIT binary patch literal 3490 zcmV;T4PEkyP)+WZWNLE4q{_;*){`Mx8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/src/pingus/screens/pingus_menu.cpp +=================================================================== +--- pingus-0.7.6.orig/src/pingus/screens/pingus_menu.cpp 2011-12-24 22:46:47.000000000 +0100 ++++ pingus-0.7.6/src/pingus/screens/pingus_menu.cpp 2012-12-24 08:34:20.314308729 +0100 +@@ -153,7 +153,7 @@ + gc.get_height()/2 - 280)); + + gc.print_left(Fonts::pingus_small, Vector2i(gc.get_width()/2 - 400 + 25, gc.get_height()-140), +- "Pingus "VERSION" - Copyright (C) 1998-2011 Ingo Ruhnke \n" ++ "Pingus " VERSION " - Copyright (C) 1998-2011 Ingo Ruhnke \n" + "See the file AUTHORS for a complete list of contributors.\n" + "Pingus comes with ABSOLUTELY NO WARRANTY. This is free software, and you are\n" + "welcome to redistribute it under certain conditions; see the file COPYING for details.\n"); +Index: pingus-0.7.6/src/pingus/pingus_main.cpp +=================================================================== +--- pingus-0.7.6.orig/src/pingus/pingus_main.cpp 2012-12-24 08:38:05.070305763 +0100 ++++ pingus-0.7.6/src/pingus/pingus_main.cpp 2012-12-24 08:38:19.370305573 +0100 +@@ -465,7 +465,7 @@ + void + PingusMain::print_greeting_message() + { +- std::string greeting = "Welcome to Pingus "VERSION; ++ std::string greeting = "Welcome to Pingus " VERSION; + greeting += "!"; + std::cout << greeting << std::endl; + for (unsigned int i = 0; i < greeting.length(); ++i) diff --git a/recipes-games/pingus/pingus_0.7.6.bb b/recipes-games/pingus/pingus_0.7.6.bb new file mode 100644 index 0000000..322873e --- /dev/null +++ b/recipes-games/pingus/pingus_0.7.6.bb @@ -0,0 +1,35 @@ +DESCRIPTION = "Pingus is a free Lemmings clone." +DEPENDS = "virtual/libiconv boost libpng libglu" +LICENSE = "GPLv3+" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" +HOMEPAGE = "http://pingus.seul.org/" + +RDEPENDS += "libmikmod" + +inherit scons +inherit sdl + +SRC_URI = "\ + http://${PN}.googlecode.com/files/${P}.tar.bz2 \ + file://version.patch \ + file://pingus.desktop \ + file://pingus.png \ +" + +EXTRA_OESCONS = "CC='${CC}' CXX='${CXX}'" + +do_install() { + install -d ${D}${bindir} + install -d ${D}${datadir}/pingus + install -d ${D}${datadir}/pixmaps + install -d ${D}${datadir}/applications + install -m 0644 ${WORKDIR}/pingus.png ${D}${datadir}/pixmaps + cp -a ${S}/data ${D}/${datadir}/pingus + install -m 0644 ${WORKDIR}/pingus.desktop ${D}${datadir}/applications + install -m 0755 ${S}/build/pingus ${D}${bindir}/pingus +} + +FILES_${PN} += "${datadir}" + +SRC_URI[md5sum] = "561798686f34d3fa4e69135d655f47ac" +SRC_URI[sha256sum] = "759c1253075d1e72691bc1e770b24cdd51917041fd1857c1daf85b65a6686460"