From 0d6b97b5ad587880021f5b6f09fa397847f1805b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= Date: Wed, 10 Aug 2016 22:35:39 +0200 Subject: [PATCH] Fixed recipe Open Syobon Action recipe (untested) Fixed recipe Recipe summary changes Fixed recipe --- .../opensyobonaction-2.rc2.recipe | 75 +++++++++++++++++++ .../patches/opensyobonaction-2.rc2.patchset | 48 ++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 games-arcade/opensyobonaction/opensyobonaction-2.rc2.recipe create mode 100644 games-arcade/opensyobonaction/patches/opensyobonaction-2.rc2.patchset diff --git a/games-arcade/opensyobonaction/opensyobonaction-2.rc2.recipe b/games-arcade/opensyobonaction/opensyobonaction-2.rc2.recipe new file mode 100644 index 000000000..f24070410 --- /dev/null +++ b/games-arcade/opensyobonaction/opensyobonaction-2.rc2.recipe @@ -0,0 +1,75 @@ +SUMMARY="A jump 'n' run game similar to Super Mario, but more evil" +DESCRIPTION="An open-source cross-platform port of the Japanese platformer using SDL.\ +It is also called \"Shobon no Action,\" \"Neko Mario,\" \"Cat Mario,\" or \"Cat MeOUCHio\". + +* When you are playing this game, there is a possibility that you will develop trust \ +issues towards game developers. +* There is also a possibility of getting stressed out over playing this game. +If any problems are caused by this game, the developers take no resposibility. +* If you want to distribute this game to a large amount of people, please inform the \ +developers so that they can seek appropriate shelter. +* After you've played this game, give it to someone else who's never played it before. \ +Then laugh. +* The game's text is entirely in Japanese, but you do not need to understand the \ +Japanese language in order to play. + +Controls (Keyboard): +* Left, Right - Move +* Down - Enter warp pipe +* Z, Up, Semicolon - Jump +* Space - Double-speed +* Escape - Exit +* F1 - Return to title screen +* 1-9 at the title screen - Select level +* 0 at the title screen - Dungeon of curiosity (there might be... bugs :P)" +HOMEPAGE="https://github.com/angelXwind/OpenSyobonAction" +COPYRIGHT="2014-2016 angelXwind" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/angelXwind/OpenSyobonAction/archive/RC2-r2.tar.gz" +CHECKSUM_SHA256="262032d8d096a187f7006e8eedd0d195bbf5689a93a72dd05f024a93fccd1390" +SOURCE_DIR="OpenSyobonAction-RC2-r2" +PATCHES="opensyobonaction-2.rc2.patchset" + +ARCHITECTURES="!x86_gcc2 x86" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + opensyobonaction$secondaryArchSuffix = $portVersion + app:syobonaction = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libsdl$secondaryArchSuffix + lib:libsdl_gfx$secondaryArchSuffix + lib:libsdl_image$secondaryArchSuffix + lib:libsdl_mixer$secondaryArchSuffix + lib:libsdl_ttf$secondaryArchSuffix + " + +BUILD_REQUIRES=" + devel:libsdl$secondaryArchSuffix + devel:libsdl_gfx$secondaryArchSuffix + devel:libsdl_image$secondaryArchSuffix + devel:libsdl_mixer$secondaryArchSuffix + devel:libsdl_ttf$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel + cmd:g++$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + make $jobArgs +} + +INSTALL() +{ + destdir=$appsDir/OpenSyobonAction + mkdir -p $destdir + cp -r SyobonAction BGM res SE $destdir + addAppDeskbarSymlink $destdir/SyobonAction SyobonAction +} diff --git a/games-arcade/opensyobonaction/patches/opensyobonaction-2.rc2.patchset b/games-arcade/opensyobonaction/patches/opensyobonaction-2.rc2.patchset new file mode 100644 index 000000000..190560e17 --- /dev/null +++ b/games-arcade/opensyobonaction/patches/opensyobonaction-2.rc2.patchset @@ -0,0 +1,48 @@ +From 3c2c6f7e034601e5bc32340664eec6fe56017fcd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= +Date: Wed, 10 Aug 2016 21:11:00 +0200 +Subject: [PATCH] Build fix + +--- + Makefile | 8 ++++---- + main.cpp | 4 ++++ + 2 files changed, 8 insertions(+), 4 deletions(-) + +diff --git a/Makefile b/Makefile +index ecfb500..0a6bb43 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,8 +1,8 @@ + SyobonAction:main.o loadg.o DxLib.o +- gcc main.o loadg.o DxLib.o -o SyobonAction `sdl-config --libs` -lSDL_gfx -lSDL_image -lSDL_mixer -lSDL_ttf ++ g++ main.o loadg.o DxLib.o -o SyobonAction `sdl-config --libs` -lSDL_gfx -lSDL_image -lSDL_mixer -lSDL_ttf -lroot -lnetwork + main.o:main.cpp +- gcc -c main.cpp ++ g++ -c main.cpp + loadg.o:loadg.cpp +- gcc -c loadg.cpp ++ g++ -c loadg.cpp + DxLib.o:DxLib.cpp +- gcc -c DxLib.cpp ++ g++ -c DxLib.cpp +diff --git a/main.cpp b/main.cpp +index bb94393..5dbd2fd 100644 +--- a/main.cpp ++++ b/main.cpp +@@ -1,9 +1,13 @@ + #include "main.h" ++#include ++#include ++#include + + // プログラムは WinMain から始まります + //Changed to ansi c++ main() + int main(int argc, char *argv[]) + { ++ chdir(dirname(argv[0])); + parseArgs(argc, argv); + if (DxLib_Init() == -1) + return 1; +-- +2.7.0 +