From 84d10b338b3ea46e94d2d4e7ce3eeb295cb4e77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 11 Jan 2013 01:32:44 +0100 Subject: [PATCH] supertux2: initial add MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-games/supertux/supertux2_git.bb | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 recipes-games/supertux/supertux2_git.bb diff --git a/recipes-games/supertux/supertux2_git.bb b/recipes-games/supertux/supertux2_git.bb new file mode 100644 index 0000000..66903e0 --- /dev/null +++ b/recipes-games/supertux/supertux2_git.bb @@ -0,0 +1,28 @@ +DESCRIPTION = "SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original Super Mario games covered under the GPL" +HOMEAPAGE = "http://supertux.lethargik.org" +SECTION = "x11/application" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" +DEPENDS = "boost libsdl libsdl-image libvorbis curl openal-soft physfs glew" + +# somehow boost is not dragged in +RDEPENDS_${PN} += "boost" + +inherit cmake + +SRCREV = "947098af8085388eef4b5352f5c5d0b6edbcd78a" +PV = "0.3.3+git${SRCPV}" +S = "${WORKDIR}/git" + +SRC_URI = "git://code.google.com/p/supertux;protocol=https" +SRC_URI[md5sum] = "f3f803e629ee51a9de0b366a036e393d" +SRC_URI[sha256sum] = "fceaf95251092d5698211ff0f51f1c50237fa5e2a6690464e9835a66e18301d0" + +EXTRA_OECMAKE = "-DINSTALL_SUBDIR_BIN=bin -DCMAKE_BUILD_TYPE=RELEASE" + +do_install_append() { + # Most of us don't have OpenGL. SDL in fullscreen seems to work best + sed -i 's#Exec=supertux2#Exec=supertux2 --renderer sdl -f#' ${D}${datadir}/applications/supertux2.desktop +} + +FILES_${PN} += "${datadir}/games/supertux2"