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 <GNUtoo@no-log.org>
This commit is contained in:
Denis 'GNUtoo' Carikli
2012-12-24 08:14:57 +01:00
parent 21767327c3
commit bc2964257f
4 changed files with 75 additions and 0 deletions

View File

@@ -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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,29 @@
Upstream Status: Backport: Backported from 1382bfc441147f60bc5bd0f56a9888cfad488be2
(Applied C++11 patch from Kasper Laudrup <laudrup@stacktrace.dk>)
---
Index: pingus-0.7.6/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 <grumbel@gmail.com>\n"
+ "Pingus " VERSION " - Copyright (C) 1998-2011 Ingo Ruhnke <grumbel@gmail.com>\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)

View File

@@ -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"