From 58b2882d92b9a0fa87e20fa4c37e618c75f33b4a Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Fri, 26 Jul 2019 16:18:18 +0200 Subject: [PATCH] mog, fix references to libSDL*, enable x86_64 (#4030) --- games-arcade/mog/mog-0.63.1548.recipe | 62 +++++++++---------- .../mog/patches/mog-0.63.1548.patchset | 22 +++++++ 2 files changed, 53 insertions(+), 31 deletions(-) create mode 100644 games-arcade/mog/patches/mog-0.63.1548.patchset diff --git a/games-arcade/mog/mog-0.63.1548.recipe b/games-arcade/mog/mog-0.63.1548.recipe index e950f8cad..04ed4361a 100644 --- a/games-arcade/mog/mog-0.63.1548.recipe +++ b/games-arcade/mog/mog-0.63.1548.recipe @@ -1,22 +1,21 @@ SUMMARY="The Maze of Galious" -DESCRIPTION=" -The Maze of Galious (MoG in short) was originally a Konami game for the MSX \ -computer system. Its real name is Knightmare II: The Maze of Galious and is \ -the sequel of another Konami game called Knightmare. +DESCRIPTION="The Maze of Galious (MoG in short) was originally a Konami game \ +for the MSX computer system. Its real name is Knightmare II: The Maze of \ +Galious and is the sequel of another Konami game called Knightmare. MoG is a very addictive game where you have to kill thousands of enemies, \ -collect items in order to obtain new powers and defeat some really great demons \ -at the end of each level. The gameplay of MoG is not the boring linear one. In \ -MoG you are free to go everywhere you want from the beginning of the game. You \ -have to be very careful of the order in which you visit all the rooms in the \ -HUGE map if you want to keep your character alive. +collect items in order to obtain new powers and defeat some really great \ +demons at the end of each level. The gameplay of MoG is not the boring linear \ +one. In MoG you are free to go everywhere you want from the beginning of the \ +game. You have to be very careful of the order in which you visit all the \ +rooms in the HUGE map if you want to keep your character alive. -The map is structured in a main map (called the castle) and 10 submaps (called \ -the worlds). Initially you are in the castle and you have to find the keys \ -that open the doors to go to each of the worlds. -To complete the game you have to defeat the boss at the end of each one of the \ -10 worlds. You are free to revisit each world as often as you want in order to \ -see if you have missed something. +The map is structured in a main map (called the castle) and 10 submaps \ +(called the worlds). Initially you are in the castle and you have to find the \ +keys that open the doors to go to each of the worlds. +To complete the game you have to defeat the boss at the end of each one of \ +the 10 worlds. You are free to revisit each world as often as you want in \ +order to see if you have missed something. To defeat all 10 demons you control two characters: Popolon and Aphrodite. \ Each one has special abilities, i.e. Popolon has a greater ability to jump \ @@ -24,35 +23,35 @@ and Aphrodite is able to dive." HOMEPAGE="http://www2.braingames.getput.com/mog/" COPYRIGHT="2002-2009 Brain Games" LICENSE="GNU GPL v2" -REVISION="1" +REVISION="2" SOURCE_URI="http://braingames.jorito.net/mog/downloads/mog.src_0.63-1548.tgz" -CHECKSUM_SHA256="707bbc1b167a55989916f803dbe55c288652fb54df6194be029c41be99e9ec3a" +CHECKSUM_SHA256="3caf30d86f5b010b9266ef860c8c8ce0be23f37dee93dd037e7927d4237475eb" +PATCHES="mog-$portVersion.patchset" -ARCHITECTURES="x86_gcc2" +ARCHITECTURES="x86_gcc2 ?x86 x86_64" PROVIDES=" mog = $portVersion app:mog = $portVersion " REQUIRES=" - haiku$secondaryArchSuffix - lib:libsdl$secondaryArchSuffix - lib:libSDL_image$secondaryArchSuffix - lib:libSDL_mixer$secondaryArchSuffix - lib:libSDL_sound$secondaryArchSuffix + haiku + lib:libSDL_1.2 + lib:libSDL_image_1.2 + lib:libSDL_mixer_1.2 + lib:libSDL_sound_1.0 " BUILD_REQUIRES=" - devel:libsdl$secondaryArchSuffix - devel:libSDL_image$secondaryArchSuffix - devel:libSDL_mixer$secondaryArchSuffix - devel:libSDL_sound$secondaryArchSuffix + haiku_devel + devel:libSDL + devel:libSDL_image + devel:libSDL_mixer + devel:libSDL_sound " BUILD_PREREQUIRES=" - haiku${secondaryArchSuffix}_devel - haiku_devel - cmd:gcc$secondaryArchSuffix - cmd:ld$secondaryArchSuffix + cmd:gcc + cmd:ld cmd:make " @@ -66,5 +65,6 @@ INSTALL() installDir=$appsDir/"Maze of Galious" mkdir -p "$installDir" make install PREFIX="$installDir" GAMEDIR="$installDir" + rm -rf "$installDir"/share/{applications,pixmaps} addAppDeskbarSymlink "$installDir/mog" "Maze of Galious" } diff --git a/games-arcade/mog/patches/mog-0.63.1548.patchset b/games-arcade/mog/patches/mog-0.63.1548.patchset new file mode 100644 index 000000000..fa686573a --- /dev/null +++ b/games-arcade/mog/patches/mog-0.63.1548.patchset @@ -0,0 +1,22 @@ +From 7aa277588c522eb6f218b68cc6dfba209e7ad630 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sun, 21 Jul 2019 08:09:58 +0200 +Subject: Disable fullscreen on startup + + +diff --git a/sources/main.cpp b/sources/main.cpp +index 84dc40f..0ef4582 100644 +--- a/sources/main.cpp ++++ b/sources/main.cpp +@@ -28,7 +28,7 @@ int COLOUR_DEPTH = 8; + + #define TRANSPARANT_COLOR (0) + +-bool fullscreen = true; ++bool fullscreen = false; + + // Redrawing constant + int REDRAWING_PERIOD = 40; +-- +2.21.0 +