diff --git a/games-kids/pipepanic/patches/pipepanic-0.1.3.patch b/games-kids/pipepanic/patches/pipepanic-0.1.3.patch new file mode 100644 index 000000000..e6c7c39f2 --- /dev/null +++ b/games-kids/pipepanic/patches/pipepanic-0.1.3.patch @@ -0,0 +1,23 @@ +--- ../main.c 2006-05-16 22:11:29.042991616 +0200 ++++ main-new.c 2013-12-09 16:52:30.000000000 +0100 +@@ -16,6 +16,10 @@ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + /* Includes */ ++// chdir() ++#include ++#include ++ + #include + #include + #include +@@ -102,6 +106,9 @@ + int main(int argc, char *argv[]) { + int count, count2; + ++ // For tracker (Thanks PulkoMandy) ++ chdir(dirname(argv[0])); ++ + /* Initialise the highscoreboard array because there may not yet + be a saved highscore[board]/rc file */ + for (count = 0; count < 5; count++) { diff --git a/games-kids/pipepanic/pipepanic-0.1.3.recipe b/games-kids/pipepanic/pipepanic-0.1.3.recipe new file mode 100644 index 000000000..5324ca060 --- /dev/null +++ b/games-kids/pipepanic/pipepanic-0.1.3.recipe @@ -0,0 +1,45 @@ +SUMMARY="A pipe connecting game." +DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. " +HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/" +SRC_URI="http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-0.1.3-source.tar.gz" +CHECKSUM_MD5="99b68e990012b2f58c184b8ba9e4fb4d" +SOURCE_DIR="pipepanic-0.1.3-source" +LICENSE="GNU GPL v2" +COPYRIGHT="2005-2013 Thunor" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + pipepanic = $portVersion + app:pipepanic = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libsdl$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libsdl$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + " +PATCHES=" + pipepanic-0.1.3.patch + " + +BUILD() +{ + make +} + +INSTALL() +{ + mkdir -p $appsDir/Pipepanic + cp pipepanic ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp $appsDir/Pipepanic/ + addAppDeskbarSymlink $appsDir/Pipepanic/pipepanic "Pipepanic" +} \ No newline at end of file